如何将Superset与gcloud oAuth集成?

时间:2020-06-04 09:26:34

标签: apache-superset superset

我正在尝试将其集成到gcloud oAuh2.0中。这是代码片段:

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对此进行了验证)。 这是我收到的:

enter image description here

可能是什么错误?

1 个答案:

答案 0 :(得分:0)

解决了该错误,我正在尝试使用预注册的电子邮件进行注册,对于造成的混乱,我们深表歉意!