Sha256: c27fadd16becf83cdc90a5cb4b7ce931bba004d842250e27db572bab9a306bf8

Contents?: true

Size: 673 Bytes

Versions: 8

Compression:

Stored size: 673 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
      config.devise_oauth2_rails4.devise_scope = :user
      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

8 entries across 8 versions & 1 rubygems

Version Path
devise_oauth2_rails4-2.1.8 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-2.1.7 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-2.1.6 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-2.1.5 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-2.1.4 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-2.1.3 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-2.0.3 lib/devise/oauth2/engine.rb
devise_oauth2_rails4-2.1.0 lib/devise/oauth2/engine.rb