Entra ID stub service providing OAuth 2.0/OIDC endpoints for RE EX EPR testing and development.
Based on fg-entra-stub-frontend with some changes to support RE EX EPR.
- nvm
- Node.js
Use supported version of Node:
nvm use
Install dependencies:
npm installRun:
npm run devClients and users are defined in the codebase:
Keys used to sign and verify tokens are defined in the codebase:
GET/POST /authorize- OAuth 2.0 authorization endpointPOST /token- Token exchange endpointGET /jwks- JSON Web Key Set endpointPOST /sign- Token signing endpointGET /.well-known/openid-configuration- OIDC discovery endpoint
STUB_EXTERNAL_URL = URL that is used to redirect to the Stub UI
STUB_INTERNAL_URL = URL that is used by calling service directly (via backend / HTTP calls)
CALLBACK_BASE_URL = Base URL for the callback (i.e. the calling service)
Override them as needed (e.g. Docker, or in environments).
curl -H 'Content-Type: application/json' -d '{"clientId":"clientId","username":"ea@test.gov.uk"}' http://localhost:3010/signdocker build --target development --tag epr-re-ex-entra-stub:dev .
docker run -p 3010:3010 epr-re-ex-entra-stub:devdocker build --tag epr-re-ex-entra-stub .
docker run -p 3010:3010 epr-re-ex-entra-stubdocker compose up --build -dTHIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:
http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3
The following attribution statement MUST be cited in your products and applications when using this information.
Contains public sector information licensed under the Open Government license v3
The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.
It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.