Testing flask-oauthlib locally without https

后端 未结 3 1445
清酒与你
清酒与你 2021-02-01 01:36

I have implemented an oauth2 server and an oauth2 client using flask-oauthlib.

When I am trying to test locally, the client returns an InsecureTransportError and tells

3条回答
  •  眼角桃花
    2021-02-01 02:27

    For Authlib usesrs :

    export AUTHLIB_INSECURE_TRANSPORT=1
    

    Or if you want to set it programmatically :

    import os
    
    os.environ['AUTHLIB_INSECURE_TRANSPORT'] = '1'
    

    I know it's not answering the question but everytime I ask Google about it I land on this page.

提交回复
热议问题