This document describes how to setup the provided Python code.
- Python
- Homebrew if using Mac
On Mac:
brew install libffi
On Ubuntu:
apt-get install libffi-dev libsasl2-dev libssl-dev
- Setup a virtual environment.
- Activate the new virtual environment.
-
Install the dependencies:
pip install -r requirements.txt
-
Test that the project runs:
-
Run the Relying Party (RP):
python run.py
. -
Verify the RP is running at http://localhost:8090.
-
Start adding to the skeleton code:
-
The missing parts are marked with
TODO
inoidc_rp/client.py
. -
Make sure to delete cookies and cached data in the browser while testing to avoid strange results (e.g. due to the browser caching redirects, etc.).