We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc7f70 commit ae7e5e8Copy full SHA for ae7e5e8
plugin.rb
@@ -116,7 +116,8 @@ def register_middleware(omniauth)
116
opts[:client_secret] = SiteSetting.oauth2_client_secret
117
opts[:provider_ignores_state] = SiteSetting.oauth2_disable_csrf
118
opts[:client_options] = {
119
- authorize_url: SiteSetting.oauth2_authorize_url,
+ # authorize_url: SiteSetting.oauth2_authorize_url,
120
+ authorize_url: @is_phone ? "https://open.weixin.qq.com/connect/oauth2/authorize" : "https://open.weixin.qq.com/connect/qrconnect",
121
token_url: SiteSetting.oauth2_token_url,
122
token_method: SiteSetting.oauth2_token_url_method.downcase.to_sym,
123
}
0 commit comments