You can learn Flask OAuth 2.0 client with this demo.
Install the required dependencies:
$ pip install -U Flask Authlib requests
Start server with:
$ export FLASK_APP=app.py
$ flask run
Then visit:
http://127.0.0.1:5000/
- Create a oauth2 client which will authenticate on behalf of the user with vendor authentication
- Create a new oauth2 server which will force encryption on vendor authentication payload & provide protection against accessing api. Proxy will be allowed to decode credentials
- Configure client to connect and load configuration from issuer.
- Create a new oauth2 client which will authenticate in between proxied and frontend requests.