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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
