Sha256: aa99ace7075d4cfaba67593c2b46e9a051d9acc1f7fbfd5af0144ca3a1d719a6

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 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.host = "example.org"
    config.oauth.authenticator = lambda do |username, password|
      "Superman" if username == "cowbell" && password == "more"
    end
  end
  config.middleware.use Rack::OAuth2::Server::Admin.mount
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-oauth2-server-1.3.1 test/rails/config/environment.rb
rack-oauth2-server-1.3.0 test/rails/config/environment.rb