Sha256: 4b9b499615320ee58b34ef305f98bac0d425ead5e2b8e392cbf158fa4bfb316d

Contents?: true

Size: 451 Bytes

Versions: 5

Compression:

Stored size: 451 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}
    config.oauth.authenticator = lambda do |username, password|
      "Superman" if username == "cowbell" && password == "more"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rack-oauth2-server-1.2.2 test/rails/config/environment.rb
rack-oauth2-server-1.2.1 test/rails/config/environment.rb
rack-oauth2-server-1.2.0 test/rails/config/environment.rb
rack-oauth2-server-1.1.1 test/rails/config/environment.rb
rack-oauth2-server-1.1.0 test/rails/config/environment.rb