Skip to content
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

allow skipping userinfo call #7106

Merged
merged 3 commits into from
Aug 23, 2023
Merged

allow skipping userinfo call #7106

merged 3 commits into from
Aug 23, 2023

Conversation

butonic
Copy link
Member

@butonic butonic commented Aug 23, 2023

AD FS only ever returns the sub claim at the /userinfo endpoint. This PR makes reading the userid claim directly from the access token the default by setting PROXY_OIDC_SKIP_USER_INFO=true and PROXY_USER_OIDC_CLAIM="lg\\.i.un" (from PROXY_USER_OIDC_CLAIM=preferred_username).

This will is a breaking change as it will no longer defailt to miking a call to the userinfo endpoint AND requires the username to be read from the access token.

@update-docs
Copy link

update-docs bot commented Aug 23, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@butonic butonic force-pushed the allow-skip-userinfo branch 2 times, most recently from 6e8a5fd to 3020ca2 Compare August 23, 2023 09:11
butonic and others added 2 commits August 23, 2023 13:56
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Martin <github@diemattels.at>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@sonarcloud
Copy link

sonarcloud bot commented Aug 23, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

57.4% 57.4% Coverage
0.0% 0.0% Duplication

@kobergj kobergj merged commit 55127fe into master Aug 23, 2023
3 checks passed
@kobergj kobergj deleted the allow-skip-userinfo branch August 23, 2023 13:12
ownclouders pushed a commit that referenced this pull request Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants