Sha256: bc3ab8ce01aa4d0c7dcc688c6ac2956f00405677b15eac3c4df7f2142f72ef5c

Contents?: true

Size: 619 Bytes

Versions: 9

Compression:

Stored size: 619 Bytes

Contents

module Devise
  module Oauth2
    class Engine < Rails::Engine
      config.devise_oauth2_rails4 = ActiveSupport::OrderedOptions.new
      config.devise_oauth2_rails4.access_token_expires_in       = 15.minutes
      config.devise_oauth2_rails4.refresh_token_expires_in      = 1.month
      config.devise_oauth2_rails4.authorization_code_expires_in = 1.minute

      engine_name 'oauth2'
      isolate_namespace Devise::Oauth2
      initializer "devise_oauth2_rails4.initialize_application", :before=> :load_config_initializers do |app|
        app.config.filter_parameters << :client_secret
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
devise_oauth2_rails4-2.0.2 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-2.0.1 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-2.0.0 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-1.1.8 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-1.1.7 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-1.1.6 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-1.1.5 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-1.1.4 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-1.1.3 lib/devise/oauth2/engine.rb