Skip to content

Quarkus OIDC guide example for OidcWiremock fails due to invalid audience #43939

Answered by sberyozkin
douglas444 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @douglas444, Quarkus now enforces that the ID token aud is set to the client id, while the OidcWiremock code was created earlier so when the ID token is generated, the aud is set to https://id.server.example.com. I guess those existing tests which use OidcWiremock for the CodeFlow tests customize it with quarkus.oidc.token.audience=https://id.server.example.com .
It may be tricky to have OIDC wiremock updated to use the client id for the ID token's aud because this OidcWiremock is used for different OIDC tenant test in the oidc-wiremock which also may have different client ids, so simplest is to customize it at the test level

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@douglas444
Comment options

Answer selected by douglas444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants