This project is an example of calling Azure AD platform for AuthN and AuthZ
npm install
npm run serve
npm run build
npm run lint
Create a .env and .env.prod file with the following settings from azure.
CLOUD_INSTANCE="https://login.microsoftonline.com/" # cloud instance string should end with a trailing slash
TENANT_ID=""
CLIENT_ID=""
CLIENT_SECRET=""
REDIRECT_URI="http://localhost:3000/auth/redirect"
POST_LOGOUT_REDIRECT_URI="http://localhost:3000"
GRAPH_API_ENDPOINT="https://graph.microsoft.com/" # graph api endpoint string should end with a trailing slash
EXPRESS_SESSION_SECRET="" # random string for express session cookie
docker-compuse up --build