【发布时间】:2020-09-23 05:40:40
【问题描述】:
我正在尝试集成到 gcloud oAuh2.0。这是代码sn-p:
OAUTH_PROVIDERS = [
{
'name': 'google',
'whitelist': ['@gmail.com'],
'icon': 'fa-google',
'token_key': 'access_token',
'remote_app': {
'base_url': 'https://www.googleapis.com/oauth2/v2/',
'request_token_params': {
'scope': 'email profile'
},
'request_token_url': None,
'access_token_url': 'https://accounts.google.com/o/oauth2/token',
'authorize_url': 'https://accounts.google.com/o/oauth2/auth',
'consumer_key': 'myKeyID',
'consumer_secret': 'MySecret'
}
}
]
我也可以访问授权页面并成功登录,但在签名后它会将我重定向到显示无效登录详细信息的页面(即使 Google 已验证它)。 这是我收到的:
可能是什么错误?
【问题讨论】: