lib/sinatra/auth/github.rb in sinatra_auth_github-0.0.8 vs lib/sinatra/auth/github.rb in sinatra_auth_github-0.0.9
- old
+ new
@@ -47,9 +47,10 @@
manager.default_strategies :github
manager.failure_app = app.github_options[:failure_app] || BadAuthentication
manager[:github_secret] = app.github_options[:secret]
+ manager[:github_callback_url] = app.github_options[:scopes] || 'email,offline_access'
manager[:github_client_id] = app.github_options[:client_id]
manager[:github_callback_url] = app.github_options[:callback_url] || '/auth/github/callback'
end
app.helpers Helpers