- Hit the deploy button above to create a heroku instance (or clone the repository to the server)
- Set up according to the guide here
- You will need your client id and the public and private keys you generated.
Heroku configuration is managed by config vars (environment variables). These are set as follows:
name | Description |
---|---|
ENV_NAME_X |
Name for environment X displayed in app |
CLIENT_ID_X |
Client ID of environment X |
PRIVATE_KEY_X |
Private key for environment X |
PUBLIC_KEY_X |
Public key for environement X |
ENV_URL_X |
Base URL for environment X |
ENV_NAME_0
= sandpit
CLIENT_ID_0
= du-nhs-login
PRIVATE_KEY_0
=
-----BEGIN PRIVATE KEY-----
<private key>
-----END PRIVATE KEY-----
PUBLIC_KEY_0
=
-----BEGIN PUBLIC KEY-----
<public key>
-----END PUBLIC KEY-----
ENV_URL_0
= https://auth.sandpit.signin.nhs.uk
to add another enviroment, just add ENV_NAME_1
, CLIENT_ID_1
etc.