Sample OIDC client for DfE
- First, clone the repository to your local machine and navigate into the folder. For example:
git clone https://github.com/mesen10/oidc-client-dfe
cd oidc-client-dfe
- Second, install all the dependencies:
yarn
- Edit your environment variables
- Open the
sample.config.env
file located inside the config folder of the project - Add the right values for your
CLIENT_ID
,CLIENT_SECRET
andPUBLIC_API.TOKEN
- Replace the "sample" with your environment name. Like
sample.config.js
->development.config.js
- Then run the development server:
yarn dev
# or
npm run dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the code by modifying the files. The server auto-updates the changes as you edit the file.
- Create a new logically-named branch. For example:
git checkout -b user-role-enhancements
- Push your changes to GitHub and create a PR against the master branch, linking the PR to any relevant issues.