Node.js example

This example covers one github repo and addresses how to configure and use it.

Code flow example

Clone this repo: https://github.com/mcguinness/oidc-rp

Install npm dependencies if needed.

npm install

You can run the application in the console using the following command:

node server.js --iss [issuerUrl] --cid [ClientId] --cs [ClientSecret] --scp "openid profile" --responseType code

Full example:

git clone https://github.com/mcguinness/oidc-rp.git
cd oidc-rp
npm install
node server.js --iss http://localhost:7878/oauth --cid openid-client --cs secret --scp "openid profile" --responseType code

Once the console shows that the endpoints discovery was successful go to http://localhost:7080 and you should get redirected to the auth endpoint.