It is a simple and exploratory but complete implementation of OAuth. This repository include both an OAuth Identity provider and an OAuth Identity consumer who share user data via standard OAuth authorisation flow.
This is not production quality code in any shape or form and is not expected to be used as such!
- Python 3
- Flask
- Flask-SQLAlchemy
- SQLAlchemy
- Requests
Install with pip:
pip install -r requirements.txt
- Open a terminal in the root/DemoServer directory of the project or, in other words, inside the DemoServer directory on directory where this file is located.
- Execute command:
python OAuthServer.py
- Open a terminal in the root/DemoClient directory of the project or, in other words, inside the DemoClient directory on directory where this file is located.
- Execute command:
python OAuthClient.py
The default URLs are:
- Consumer: http://127.0.0.2:5000
- Provider: http://127.0.0.1:5000