~muirrum/gompei-verification

ref: a2770e6db834715e3badba2362e701039fa66535 gompei-verification/README.md -rw-r--r-- 1.1 KiB
a2770e6d — Cara Salter Enable customizing success URL 6 months ago

#Gompei Verification

This is a small web service to allow students to verify their Azure AD accounts with a specific Discord account.

#Configuration

Create a .env file with the following keys:

  • AZURE_CLIENT_ID - the OAuth2 Client ID provided by Azure
  • AZURE_CLIENT_SECRET - the OAuth2 Client Secret provided by Azure
  • AZURE_TENANT_ID - the Azure AD tenant ID
  • DISCORD_CLIENT_ID - the OAuth2 Client ID provided by Discord
  • DISCORD_CLIENT_SECRET - the OAuth2 Client Secret provided by Discord
  • DISCORD_GUILD - the Discord server that contains the verification role
  • DISCORD_VERIFY_ROLE - the role to be granted upon successful verification
  • DISCORD_TOKEN - the Discord bot token
  • BASE_URL - the base public-facing URL, used to construct redirects
  • SUCCESS_URL - the URL to redirect to on success

#Setup

  1. Create an Azure "App Registration" in the Azure Portal.
  2. Create a Discord "Application" in the Discord portal.
  3. Fill in your .env file with the credentials and IDs needed
  4. go build && ./gompei-verification