-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add email claim using oidc_user_claims ? #91
Comments
Hi, That's totally correct & should work. I am not familiar with Traefik forward auth setup, so that could have something to do here. This would require deeper debugging of exact data returned by endpoints vs expectations, in your setup. https://oauth.tools/ would be helpful here. |
I used openidconnect.net (so avoiding traefik-forward-auth), and confirmed that I the jtw didn't include an email claim, even though I asked for it (config above). I'm not sure, but could it be related to https://github.com/Automattic/wp-openid-connect-server/blob/main/src/Http/Handlers/ConfigurationHandler.php#L31 ? D |
Been debugging this a bit.. adding this
|
AFAICT, the |
I don't understand enough to know why, but I found that I needed to edit
Before this, (to which I added the
It's working, but I'll happily take instruction on why, and how I could have done it better :) |
Hey folks!
I'm trying to use this in conjection with https://github.com/mesosphere/traefik-forward-auth - I need an email claim to validate, so I tried the following client setup:
And then I added:
Hoping to get the email address returned. However, my claim (when debugged with https://openidconnect.net/), doesn't show the email field.
Have I misunderstood how to achieve this? :)
Thanks!
D
The text was updated successfully, but these errors were encountered: