Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 3.08 KB

File metadata and controls

55 lines (42 loc) · 3.08 KB

SPID CIE OIDC NodeJS Relying Party Example Project with Express and React

This project showcases the relying party.

Requirements:

How to run

  • run the SPID povider federation

  • run the CIE povider provider

  • cd into relying party directory, your local directory that corresponds to this

    • run this command yarn build && yarn link
  • 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
  • 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
    • 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
  • restart relying party (the one running on port 3000)

  • visit http://127.0.0.1:3000 to try out the application

Docker

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)
  • 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