test/sinatra/my_app.rb in rack-oauth2-server-2.3.0 vs test/sinatra/my_app.rb in rack-oauth2-server-2.4.0

- old
+ new

@@ -1,16 +1,18 @@ require "rack/oauth2/sinatra" class MyApp < Sinatra::Base use Rack::Logger set :sessions, true + set :show_exceptions, false register Rack::OAuth2::Sinatra oauth.authenticator = lambda do |username, password| "Batman" if username == "cowbell" && password == "more" end oauth.host = "example.org" oauth.database = DATABASE + # 3. Obtaining End-User Authorization before "/oauth/*" do