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

Fix regression with OIDC discovery url but no tokenUrl #3280

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Conversation

strehle
Copy link
Member

@strehle strehle commented Feb 6, 2025

Causing Issue #3271

Withe the change from #3165 we improved performance because the loop of OIDC providers in /login endpoint should not request always all OIDC idps.
But now if you want use a concrete OIDC idp for password grant there could be the situation, that no tokenUrl is available

This PR checks if tokenUrl is null ( which is allowed from configuration ) and then fetch OIDC metadata. If the tokenUrl still is null, then exit with an error, but not run ino NPE.

@strehle strehle changed the title Fix OIDC discovery update Fix regression with OIDC discovery url but no tokenUrl Feb 11, 2025
@strehle strehle merged commit f9e2fbc into develop Feb 11, 2025
22 checks passed
@strehle strehle deleted the fix/issue/3271 branch February 11, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

OIDC password grant using external IdP with discoveryUrl config
2 participants