To run this project you must have a .env file setup at the root of the project
A setup example with the required variables
NODE_TLS_REJECT_UNAUTHORIZED='0'
IDENTITYSERVER_ID=identity-server
IDENTITYSERVER_NAME=Iceland authentication service
IDENTITYSERVER_SCOPE=openid profile api.scope
IDENTITYSERVER_DOMAIN=identity-server.staging01.devland.is
IDENTITYSERVER_CLIENT_ID=<YOUR_CLIENT_ID>
IDENTITYSERVER_SECRET=<YOUR_CLIENT_SECRET>
CALLBACK_URL=http://localhost:3000
Beware that the variable NODE_TLS_REJECT_UNAUTHORIZED is used to solve certificate problems only required for localhost. Should not be in production
The project is set to run on localhost and port 3000. To make the IdentityServer respond correctly for another uri you must add it's redirect uri using the postman collection
To run the project
- Be at the root of the project in command line
- Run the command yarn dev
Then the project should run on port 3000
Go to http://localhost:3000 to view the project