test/rails/config/environment.rb in rack-oauth2-server-1.3.1 vs test/rails/config/environment.rb in rack-oauth2-server-1.4.0
- old
+ new
@@ -2,13 +2,13 @@
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.scopes = %w{read write time-travel}
config.oauth.host = "example.org"
config.oauth.authenticator = lambda do |username, password|
- "Superman" if username == "cowbell" && password == "more"
+ "Batman" if username == "cowbell" && password == "more"
end
end
config.middleware.use Rack::OAuth2::Server::Admin.mount
end