pingusix opened a new issue #13243:
URL: https://github.com/apache/superset/issues/13243
A clear and concise description of what the bug is.
### Expected results
User list displays and users can be edited When settings -> List Users is
selected
### Actual results
Get an access denied popup and return to dashboard
#### How to reproduce the bug
Enable AUTH_TYPE=AUTH_OAUTH in config.py
Snippet of config.py:
AUTH_TYPE = AUTH_OAUTH
AUTH_USER_REGISTRATION = True
AUTH_USER_REGISTRATION_ROLE = "Admin"
PUBLIC_ROLE_LIKE_GAMMA = True
OAUTH_PROVIDERS = [
{
"name": "google",
"icon": "fa-google",
"token_key": "access_token",
"remote_app": {
"client_id": "xxx",
"client_secret": "xxx",
"api_base_url": "https://www.googleapis.com/oauth2/v2/",
"client_kwargs": {"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",
}
}
]
Register a new user using Google as a provider.
Go to settings-> List Users
Also changed auth type back to AUTH_DB and logged in as admin. I then
deleted permissions for new google-based admin user and added them back in so
they matched the currently authorised admin. Logged out, changed config.py back
to use oauth and logged in as google-based admin user. Problem remains (also
created a new auth_db based user with same permissions and worked correctly)
### Environment
(please complete the following information):
Ubuntu 18.04.3
Superset 1.0.1
Python 3.7.5
Node 8.10.0
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]