Relying party examples
An application that depends on the OpenID Connect Provider (OP) is called a Relying Party (RP). The following examples have been tested against the OneWelcome Identity Platform OP, and include some required configurations.
Node.js
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
When the console shows that the endpoint discovery was successful, go to http://localhost:7080, where you are redirected to the authentication endpoint.
Java with Spring Framework
For the code and configuration details, see the Java Spring example project.
ASP.NET Core
For the code and configuration details, see the ASP.NET core example project.