nandwalritik commented on issue #28646:
URL: https://github.com/apache/superset/issues/28646#issuecomment-2464214430

   @MalavikaN1 Thanks for replying, not sure where should I add this. I will 
tell you about my implementation. Maybe you can help me after that.
   
   We have integrated dashboard using embedded sdk, also I have overrided the 
login with below logic.
   ```    @expose('/login/', methods=['POST','GET'])
       def login(self):
               username = request.args.get("username")
               password = request.args.get("password")
               redirect_url= request.args.get("redirect")
               user = self.appbuilder.sm.auth_user_db(username, password)
               if user:
                   # print("")
                   login_user(user, remember=False)
                   print(user,self.appbuilder.get_url_for_index)
                   if redirect_url is not None:
                       return redirect(redirect_url)
                   return redirect(self.appbuilder.get_url_for_index)
   
               elif g.user is not None and g.user.is_authenticated():
                   if redirect_url is not None:
                       return redirect(redirect_url)
   
                   return redirect(self.appbuilder.get_url_for_index)
               else:
                   return super(CustomAuthDBView,self).login()
   ```
   
   So Where should we do this `session.pop("_flashes",None)`?
   * In the base application where we have embedded the dashboards (because we 
are receiving the pop ups) in that
   * Or somewhere inside the login?
   
   


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