som2014 opened a new issue #10629:
URL: https://github.com/apache/incubator-superset/issues/10629


   I have integrated the SSO with superset after integration for admin users  
`List User` is not opening 
   
   Here is my login function:
   ```
   @expose("/login/")
       def login(self):
           provider = 'login'
           if g.user is not None and g.user.is_authenticated:
               log.info("Already authenticated {0}".format(g.user))
               if(request.args["next"] is not None):
                       log.info("Checking the 
URL----->{0}".format(request.args["next"]))
                       return redirect(request.args["next"])
   
               return redirect(self.appbuilder.get_url_for_index)
           else:
               log.info("Going to call authorize for: {0}".format(provider))
               state = jwt.encode(
                   request.args.to_dict(flat=False),
                   self.appbuilder.app.config["SECRET_KEY"],
                   algorithm="HS256",
               )
               try:
                   if provider is not None:
                       return 
self.appbuilder.sm.oauth_remotes[provider].authorize(
                           callback=url_for(
                               ".oauth_authorized", provider=provider, 
_external=True
                           ),
                           state=state,
                       )
               except Exception as e:
                   log.error("Error on OAuth authorize: {0}".format(e))
                   return redirect(self.appbuilder.get_url_for_index)
   ```
   
   I have added the logs so to check why it's not going there so logs says:
   
   ```
   INFO:custom_sso_security_manager:Already authenticated Som Pathak
   INFO:custom_sso_security_manager:Checking the URL-----> 
http://10.22.266.62:8088/users/list/
   INFO:custom_sso_security_manager:Already authenticated Som Pathak
   INFO:custom_sso_security_manager:Checking the 
URL----->http://10.22.266.62:8088/users/list/
   INFO:custom_sso_security_manager:Already authenticated Som Pathak
   INFO:custom_sso_security_manager:Checking the 
URL----->http://10.22.266.62:8088/users/list/
   ```
   
   It going  again to login method hence resulting in to many redirect  error 
any help regarding this ?


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