meta: Add privacy policy
web: Allow customization of listen port
Enable customizing success URL
This is a small web service to allow students to verify their Azure AD accounts with a specific Discord account.
Create a .env
file with the following keys:
AZURE_CLIENT_ID
- the OAuth2 Client ID provided by AzureAZURE_CLIENT_SECRET
- the OAuth2 Client Secret provided by AzureAZURE_TENANT_ID
- the Azure AD tenant IDDISCORD_CLIENT_ID
- the OAuth2 Client ID provided by DiscordDISCORD_CLIENT_SECRET
- the OAuth2 Client Secret provided by DiscordDISCORD_GUILD
- the Discord server that contains the verification roleDISCORD_VERIFY_ROLE
- the role to be granted upon successful verificationDISCORD_TOKEN
- the Discord bot tokenBASE_URL
- the base public-facing URL, used to construct redirectsSUCCESS_URL
- the URL to redirect to on successLISTEN_PORT
- the HTTP port to bind the web server to.env
file with the credentials and IDs neededgo build && ./gompei-verification