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


   > How do I know what I have to return when I override oauth_user_info? I'm 
returning an object like this, but it doesn't work:
   
   This is the logic of the latest flask-appbuilder:
   
   this is how flask appbuilder uses user_info: 
https://github.com/dpgaspar/Flask-AppBuilder/blob/dae4dd47d51e1e2eb5894bce55221c1d26864c3b/flask_appbuilder/security/manager.py#L1287-L1302
   
   So the key attributes are `username` and `email` (if `username` is not 
available), and you must have that user account in superset db with a matching 
username (in your code, a user's username must be the case sensitive email).


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

Reply via email to