giacomochiarella opened a new issue, #23932:
URL: https://github.com/apache/superset/issues/23932

   Hi everyone! I have the following custom SupersetSecurityManager:
   ```
   class CustomSsoSecurityManager(SupersetSecurityManager):
   
       def __init__(self, appbuilder):
           super(CustomSsoSecurityManager, self).__init__(appbuilder)
   
       def oauth_user_info(self, provider, response=None):
           logging.info("=================> provider: {0}.".format(provider))
           try:
               u = self.appbuilder.sm.oauth_remotes[provider].get('userDetails')
               logging.info(f"=================> {u}")
           except Exception as e:
               logging.info(f"=================> {e}")
           return super().oauth_user_info(provider, response)
   ```
   I just want to debug a bit to see what I get in `u` variable. The error I'm 
getting is:
   `ERROR:flask_appbuilder.security.views:Error returning OAuth user info: name 
'logging' is not defined`
   The final idea is to override the username assigned when a user login using 
google sso. Right now it is something like google_12342346566367. I would like 
to set the email. Is that possible?
   


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

Reply via email to