Sha256: 5e2a52d099bdce229ec322706a7e1bf1e3855c77e84e75c3f01a502b7cdc91ce

Contents?: true

Size: 557 Bytes

Versions: 6

Compression:

Stored size: 557 Bytes

Contents

Rails::Initializer.run do |config|
  config.frameworks = [ :action_controller ]
  config.action_controller.session = { :key=>"_myapp_session", :secret=>"Stay hungry. Stay foolish. -- Steve Jobs" }

  config.after_initialize do
    config.oauth.database = DATABASE
    config.oauth.scopes = %w{read write time-travel}
    config.oauth.host = "example.org"
    config.oauth.authenticator = lambda do |username, password|
      "Batman" if username == "cowbell" && password == "more"
    end
  end
  config.middleware.use Rack::OAuth2::Server::Admin.mount
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rack-oauth2-server-1.4.5 test/rails/config/environment.rb
rack-oauth2-server-1.4.4 test/rails/config/environment.rb
rack-oauth2-server-1.4.3 test/rails/config/environment.rb
rack-oauth2-server-1.4.2 test/rails/config/environment.rb
rack-oauth2-server-1.4.1 test/rails/config/environment.rb
rack-oauth2-server-1.4.0 test/rails/config/environment.rb