This document describes how to setup the provided Python code
(in the directory OIDCRPExample/
).
- Python
- Homebrew if using Mac
On Mac:
brew install libffi
On Ubuntu:
apt-get install libffi-dev libsasl2-dev libss-dev
- Setup a virtual environment.
- Activate the new virtual environment.
-
Install the dependencies:
pip install -r requirements.txt
-
Test that the project runs:
-
Specify the path to the root directory containing all necessary files (
client.json
,index.html
, etc.) inClient.ROOT_PATH
(inoidc_rp/client.py
). -
Run the Relying Party (RP):
python3 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.).