This project showcases the relying party.
-
run the SPID povider federation
- follow these instructions
./manage.py runserver 0.0.0.0:8000
- the project should run on http://127.0.0.1:8000, keep it running
- follow these instructions
-
run the CIE povider provider
- follow these instructions
./manage.py runserver 0.0.0.0:8002
- the project should run on http://127.0.0.1:8002, keep it running
- follow these instructions
-
cd into relying party directory, your local directory that corresponds to this
- run this command
yarn build && yarn link
- run this command
-
cd into this directory, your local directory that corresponds to this
- create
public.jwks.json
named file in current directory (you can copy this one public.jwks.json) - create
private.jwks.json
named file in current directory (you can copy this one private.jwks.json) - run this command
yarn link spid-cie-oidc && yarn build && yarn start
- this will start the relying party server on http://127.0.0.1:3000, keep it running
- create
-
do the onboarding process
- register the relying party here
- paste in the federation related public jwks (from the previously created file
public.jwks.json
) - set isActive to true
- paste in the federation related public jwks (from the previously created file
- create new profile here
- usually you want a private or public profile as for spec
- after creation you review the profiles
- copy trust_marks from here as an array to
trust_marks.json
in this direcotry
- register the relying party here
-
restart relying party (the one running on port 3000)
-
visit http://127.0.0.1:3000 to try out the application
A docker image containing this example can be built a run:
docker-compose up
(this builds the images locally)- or alternatively
cd docker && docker-compose up
(this download images from repository)
- or alternatively
- add these entries to your hosts file
127.0.0.1 trust-anchor.org
127.0.0.1 relying-party.org
- visit
http://relying-party.org:3000