OAuth2.0 and "post processing" #2153
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there!
I have been trying to implement something rather specific: I want to secure (or rather "protect") some of my services that do not have a login UI by using Discord's Oauth2 so that my friends can access it. However, the catch is that I need to verify if they are in my server (the Discord API calls this a
guild
). This can be done when requesting theguilds
scope initially and then using the returned access token to make a request for it - it does NOT show up in the initial profile, it has to be a second request.How could I use Hanko to implement this potentially? The flow would be something like this:
pinchflat.example.com
I use k3s with traefik, so oauth2-proxy plus Traefik's forward auth make a solid method to add a login where there normally is none. But it is merely exemplary, perhaps you have a better idea :)
Would that be possible?
Thank you and kind regards,
Ingwie
Beta Was this translation helpful? Give feedback.
All reactions