You can run both the OpenID Provider (simple_op) and the Relying Party (simple_rp) on the same machine by assigning them different ports. Note that simple_op typically runs on the standard HTTPS port (443), while simple_rp can be configured to run on a different port (e.g., 8000).
1. Start the OP server
Run the server in the simple_op directory using a configuration file and specifying the port:
python src/run.py settings.yaml.example -p 443
2. Start the RP server
Run the server in the simple_rp directory using a configuration file and specifying a different port:
python src/rp.py settings.yaml.example -p 8000
3. Complete the Authentication Flow
- Open
<https://localhost:8000/> in your browser. - When prompted, enter the UID
localhost to connect to the simple_op server. - Login using the credentials defined in
simple_op/passwd.json (this file is referenced in the simple_op settings). - Verify that the user info is successfully loaded by the RP server.
# Start OP
python src/run.py settings.yaml.example -p 443
# Start RP
python src/rp.py settings.yaml.example -p 8000