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