You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/08/16 20:17:09 UTC

[GitHub] [superset] shawnzhu commented on issue #13243: Can't open Settings -> List Users when using OAuth with Google for an Admin user

shawnzhu commented on issue #13243:
URL: https://github.com/apache/superset/issues/13243#issuecomment-899791277


   I have similar problem when initializing superset with `AUTH_TYPE = AUTH_OAUTH` in config but used `AUTH_TYPE = AUTH_OAUTH` after OAUTH2 config works.
   
   I found the problem is about missing permissions like `can (list|edit|userinfo|show|add|delete) UserOAuthModelView`, which explained why it works after re-run `superset init` which basically sync role definitions.
   
   So when switching authentication methods, the user data model name changes: https://github.com/dpgaspar/Flask-AppBuilder/blob/1fb6d985910d306a821a8da072cd3c93e41311ac/flask_appbuilder/security/mongoengine/manager.py#L43-L52
   
   which means after switching authentication methods, it needs re-run `superset init`, or adding required permissions to the `Admin` role.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org