Configurable google auth callback URL
This commit is contained in:
parent
5947cd393e
commit
64031261c5
@ -152,7 +152,7 @@ Rails.application.config.sorcery.configure do |config|
|
|||||||
#
|
#
|
||||||
config.google.key = ENV['GOOGLE_CLIENT_ID']
|
config.google.key = ENV['GOOGLE_CLIENT_ID']
|
||||||
config.google.secret = ENV['GOOGLE_CLIENT_SECRET']
|
config.google.secret = ENV['GOOGLE_CLIENT_SECRET']
|
||||||
config.google.callback_url = "http://localhost:3000/oauth/callback?provider=google"
|
config.google.callback_url = (ENV['GOOGLE_AUTH_CALLBACK_URL'] || "http://localhost:3000/oauth/callback?provider=google")
|
||||||
config.google.user_info_mapping = {:email => "email", :name => "name", :google_id => "id"}
|
config.google.user_info_mapping = {:email => "email", :name => "name", :google_id => "id"}
|
||||||
config.google.scope = "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/spreadsheets"
|
config.google.scope = "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/spreadsheets"
|
||||||
config.google.auth_url = '/o/oauth2/auth?access_type=offline&include_granted_scopes=true'
|
config.google.auth_url = '/o/oauth2/auth?access_type=offline&include_granted_scopes=true'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user