lib/sinatra/auth/github.rb in sinatra_auth_github-0.13.3 vs lib/sinatra/auth/github.rb in sinatra_auth_github-0.14.0

- old
+ new

@@ -144,19 +144,20 @@ end end def self.registered(app) app.use AccessDenied + app.use BadAuthentication + app.use Warden::Manager do |manager| manager.default_strategies :github - manager.failure_app = app.github_options[:failure_app] || BadAuthentication + manager.failure_app = app.github_options[:failure_app] || BadAuthentication - manager[:github_secret] = app.github_options[:secret] || ENV['GITHUB_CLIENT_SECRET'] - manager[:github_scopes] = app.github_options[:scopes] || '' - manager[:github_client_id] = app.github_options[:client_id] || ENV['GITHUB_CLIENT_ID'] - manager[:github_oauth_domain] = app.github_options[:oauth_domain] || ENV['GITHUB_OAUTH_DOMAIN'] || 'https://github.com' - manager[:github_callback_url] = app.github_options[:callback_url] || '/auth/github/callback' + manager[:client_secret] = app.github_options[:secret] || ENV['GITHUB_CLIENT_SECRET'] + manager[:scopes] = app.github_options[:scopes] || '' + manager[:client_id] = app.github_options[:client_id] || ENV['GITHUB_CLIENT_ID'] + manager[:redirect_uri] = app.github_options[:callback_url] || '/auth/github/callback' end app.helpers Helpers app.get '/auth/github/callback' do