Once the application is running, you will need to add an identity provider to authenticate users. You will also need to configure an admin user.
Note
Only one of the identity providers below needs to be configured.
We'll create two GitHub apps: one for testing locally and another for production.
-
Navigate to GitHub OAuth Apps setup https://github.com/settings/developers
-
Create a
New OAuth Apphttps://github.com/settings/applications/new -
Fill in the following details
Application name: DEV Environment Homepage URL: http://localhost:3000 Authorization callback URL: http://localhost:3000/api/auth/callback/github
-
Navigate to GitHub OAuth Apps setup https://github.com/settings/developers
-
Create a
New OAuth Apphttps://github.com/settings/applications/new -
Fill in the following details
Application name: Production Homepage URL: https://YOUR-APP-DOMAIN Authorization callback URL: https://YOUR-APP-DOMAIN/api/auth/callback/github
# GitHub OAuth app configuration
AUTH_GITHUB_ID=
AUTH_GITHUB_SECRET=-
Navigate to Azure AD Apps setup
-
Create a New Registration
-
Fill in the following details
Application name: DEV Environment Supported account types: Accounts in this organizational directory only Redirect URI Platform: Web Redirect URI: http://localhost:3000/api/auth/callback/azure-ad
-
Navigate to Azure AD Apps setup
-
Create a New Registration
-
Fill in the following details
Application name: Production Supported account types: Accounts in this organizational directory only Redirect URI Platform: Web Redirect URI: https://YOUR-APP-DOMAIN/api/auth/callback/azure-ad
# Azure AD OAuth app configuration
AZURE_AD_CLIENT_ID=
AZURE_AD_CLIENT_SECRET=
AZURE_AD_TENANT_ID=The reporting pages in the application are only available to an admin user. Set the ADMIN_EMAIL_ADDRESS environment variable to the email address of the admin user.