raghulprashath commented on issue #19525:
URL: https://github.com/apache/superset/issues/19525#issuecomment-1397994114

   > Instead of
   > 
   > ```
   > #trying to use the "current user" request as a test
   > response = requests.get('http://localhost:8088/api/v1/me', headers=headers)
   > ```
   > 
   > you should try:
   > 
   > ```
   > session.headers.update(headers)
   > 
   > response = session.get('http://localhost:8088/api/v1/me') 
   > ```
   
   This didn't work now. 
   The code is accessing g.user from flask_login. The flask_login doesn't load 
the user when the request is sent from the api.
   I think there should be a better solution for the new version of code.


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