Sha256: a58cb7e8e9a4872a8faf0dcf7f937997a2e81b63b49172a840288578a0a43e0b

Contents?: true

Size: 613 Bytes

Versions: 1

Compression:

Stored size: 613 Bytes

Contents

class << Rails
  def vendor_rails?
    false
  end
end

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

1 entries across 1 versions & 1 rubygems

Version Path
rack-oauth2-server-1.4.6 test/rails2/config/environment.rb