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 to combine the discovered and locally configured OIDC metadata #22007

Conversation

sberyozkin
Copy link
Member

@sberyozkin sberyozkin commented Dec 7, 2021

Fixes #22006

This PR updates OidcRecorder to fallback to the locally provided configuration if one of the expected URLs in the discovered doc is not provided. One of the oidc-tenancy tests has been updated.

Also did a minor cleanup by moving a test specific wiremock stub to the test which actually requires it (while I was planning to test this PR with a missing logout URL in the discovered doc - but then changed my mind as it is useful for OidcWiremockTestResource to return the end session/logout url and decided to change the oidc-tenancy test where it is simpler to control it at the JAX-RS OidcResource test endpoint level).

Making it a draft as I haven't run all the tests yet. Also CC @FroMage

Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sberyozkin sberyozkin force-pushed the combine_discovered_configured_oidc_metadata branch from 9cf7cba to 2f15f4f Compare December 7, 2021 21:56
@sberyozkin sberyozkin marked this pull request as ready for review December 7, 2021 21:56
@sberyozkin
Copy link
Member Author

Tests look OK so far

@sberyozkin
Copy link
Member Author

OK, let me merge since the release is due tomorrow early morning

@sberyozkin sberyozkin merged commit b843007 into quarkusio:main Dec 7, 2021
@sberyozkin sberyozkin deleted the combine_discovered_configured_oidc_metadata branch December 7, 2021 23:53
@quarkus-bot quarkus-bot bot added this to the 2.6 - main milestone Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to combine OIDC discovered and locally configured metadata
2 participants