You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/03/17 06:42:30 UTC

[GitHub] [superset] marshell0 commented on issue #2580: Question: How to auto login (bypass) login page?

marshell0 commented on issue #2580:
URL: https://github.com/apache/superset/issues/2580#issuecomment-1070376739


   session = requests.session()
   login_url = "http://<superset_server>:8088/api/v1/security/login"
   login_data = {'username': 'xxx_user', 'password': 'xxx_pass', 'provider': 'db', 'refresh': True}
   response = session.post(url=login_url, json=login_data)
   Then you can obtain csrf_token from response, and use it as a key for you following request
   


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org