Authenticate with Discord, authorize by Discord Guilds? #3869
Unanswered
IngwiePhoenix
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there!
I have been trying to find a IdP that would allow me to utilize Discord's Oauth2 for authentication, but only actually authorize users if they are in a certain Discord Server (which they call "guild" in their API).
The long story short: After authenticating, one can do a
GET .../@me/guilds
to retrive the guilds a user is joined to, given that the initial OAuth2 flow had claimedguilds
.In my case, I am trying to build a method by which I can expose home-hosted services to my friends and give them access with just their Discord account - I wrote a lengthy entry on Reddit a while ago for more context. :)
Looking at the
connectors/oauth
code, it appears to me that it shouldn't be too difficult to put together - in fact, most of the requirements are met with just that connector alone. Is there a way to add a hook or something to allow me to just add this additional request and check?Thank you very much and kind regards,
Ingwie
Beta Was this translation helpful? Give feedback.
All reactions