betodealmeida commented on PR #28770: URL: https://github.com/apache/superset/pull/28770#issuecomment-2140399666
> @betodealmeida given this seems to be associated with OAuth are there existing OAuth related feature flags/configurations which could be leveraged? To clarify, the OAuth I mention here is for authentication, not authorization (https://github.com/apache/superset/issues/20300). We could do something like: ```python from flask_appbuilder.security.manager import AUTH_REMOTE_USER if config.AUTH_TYPE == AUTH_REMOTE_USER: # use email prefix instead of username ``` But I'm not familiar with all types of OAuth login, so I'd rather not assume that's always true. -- 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]
