Skip to content

OIDC with Discord #6355

Answered by cstby
Conquerix asked this question in Show and tell
Discussion options

You must be logged in to vote

Thank you @Conquerix for sharing this guide! I really think this could be helpful to have in the official documentation.

I can confirm that the above instructions produce the desired result of authentication with Discord.

For those of us unfamiliar with Nix OS, I've included the relevant lines from my .env file below. The client id and secret should be replaced with those from your discord app, but the rest can be used without any tweaks.

OIDC_AUTH_URI=https://discordapp.com/api/oauth2/authorize
OIDC_TOKEN_URI=https://discordapp.com/api/oauth2/token
OIDC_USERINFO_URI=https://discordapp.com/api/users/@me
OIDC_CLIENT_ID=123456
OIDC_CLIENT_SECRET=abcdefg
OIDC_SCOPES=email identify
OIDC_DISPL…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tommoor
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants