Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.8 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.8 KB

This document describes how to setup the provided Python code (in the directory python_skeleton/OIDCRPExample/).

Prerequisites

Setup

System setup

On Mac:

On CentOS:

yum install libffi-devel

On Ubuntu:

apt-get install python-dev python-pip libssl-dev libffi-dev libsasl2-dev

Project setup

Optional pre-setup

  1. Setup a virtual environment. (You can do it directly from pyCharm)
  2. Activate the new virtual environment.

Code setup

  1. Install the dependencies: pip install -r requirements.txt

  2. Test that the project runs:

    1. Specify the path to the root directory containing all necessary files (client.json, index.html, etc.) in Client.ROOT_PATH (in oidc_rp/client.py).
    2. Run the Relying Party (RP): python runner.py (from the OIDCRPExample/ directory).
    3. Verify the RP is running at http://localhost:8090 using Firefox (Google Chrome has some issues with CherryPy's sessions). With recent versions of Chrome there seem not to be a problem.
  3. Start adding to the skeleton code:

    1. The missing parts are marked with TODO in oidc_rp/client.py.
    2. Read the Python Cookbook for more information about how to use the pyOIDC OpenID Connect library.
    3. 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.).