GitHub user mg1986jp added a comment to the discussion: Error returning OAuth
user info: Invalid URL 'userinfo': No scheme supplied. Perhaps you meant
https://userinfo?
The error means your OAuth config is missing the full userinfo endpoint URL.
When you set up the OAuth provider config in `superset_config.py`, you need to
include `api_base_url` with the full Google URL.
Something like:
```python
OAUTH_PROVIDERS = [{
'name': 'google',
'icon': 'fa-google',
'token_key': 'access_token',
'remote_app': {
'client_id': '...',
'client_secret': '...',
'api_base_url': 'https://www.googleapis.com/oauth2/v2/',
'client_kwargs': {'scope': 'email profile'},
'access_token_url': 'https://accounts.google.com/o/oauth2/token',
'authorize_url': 'https://accounts.google.com/o/oauth2/auth',
'userinfo_endpoint': 'https://openidconnect.googleapis.com/v1/userinfo',
}
}]
```
The `userinfo_endpoint` needs to be a full URL with `https://`. Without it,
Flask-AppBuilder just gets the string `userinfo` and tries to use it as a URL
directly — hence "Invalid URL 'userinfo': No scheme supplied."
GitHub link:
https://github.com/apache/superset/discussions/40452#discussioncomment-17083214
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]