mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: google oauth2 for sites using https. Need to specify the redirect_uri during setup in this case.
This commit is contained in:
parent
bf16ff275a
commit
fe6235b40e
@ -36,7 +36,8 @@ class Auth::GoogleOAuth2Authenticator < Auth::Authenticator
|
|||||||
strategy = env["omniauth.strategy"]
|
strategy = env["omniauth.strategy"]
|
||||||
strategy.options[:client_id] = SiteSetting.google_oauth2_client_id
|
strategy.options[:client_id] = SiteSetting.google_oauth2_client_id
|
||||||
strategy.options[:client_secret] = SiteSetting.google_oauth2_client_secret
|
strategy.options[:client_secret] = SiteSetting.google_oauth2_client_secret
|
||||||
}
|
},
|
||||||
|
:redirect_uri => "#{Discourse.base_url}/auth/google_oauth2/callback"
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
Loading…
x
Reference in New Issue
Block a user