Bonifacio-Oliveira commented on issue #13948:
URL: https://github.com/apache/superset/issues/13948#issuecomment-856734982


   Hello, @shawnzhu . I tried your code and it didn't work. Let me share mine:
   
   ```python
   class CustomSsoSecurityManager(SupersetSecurityManager):
   
       def oauth_user_info(self, provider, response=None):
           if provider == 'okta':
               user_info = 
self.appbuilder.sm.oauth_remotes[provider].get('userinfo')
   
               me = user_info.json()
   
               return {
                   'name': me['name'],
                   'email': me['email'],
                   'id': me['email'],
                   'username': me['email'],
                   'first_name': me['given_name'],
                   'last_name': me['family_name']
               }
   ```
   
   I'm now able to retrieve the data from Okta, but it's still not clear to me 
what is the interface of the object `oauth_user_info` is supposed to return.


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