Repository navigation
Support for JWE IDToken and UserInfo tokens in OIDC brokers - #21355
Merged
Merged
Conversation
pedroigor
previously approved these changes
Jun 30, 2023
Contributor
|
@rmartinc As you pointed out, we might want to include this one in FIPS test job. |
Contributor
Author
|
I have just thought about documentation. Wait for the moment, I think we need to add a paragraph in the admin server and a point in the release notes. |
rmartinc
force-pushed
the
issue-21254
branch
2 times, most recently
from
July 1, 2023 08:17
7173508 to
78fd33f
Compare
pedroigor
approved these changes
Jul 3, 2023
pedroigor
enabled auto-merge (rebase)
July 3, 2023 15:21
Unreported flaky test detectedIf the below flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.webauthn.account.WebAuthnSigningInTest#displayAvailableAuthenticatorsKeycloak CI - WebAuthn IT (firefox) |
ghost
reviewed
Jul 4, 2023
There was a problem hiding this comment.
Unreported flaky test detected, please review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #21254
Adding JWE management for the OIDC brokering. The realm keys are used to decrypt the token. This way the IdP can use the realm jwks endpoint to obtain the public key to encrypt with. No configuration is needed, the OIDC provider now just checks if the token is JWE or JWS.
A new test that extends
AbstractBrokerTestis added. It configures encryption in the provider clients to use JWE for IDToken and UserInfo. The test can be extended to setup different algorithms. The second test does just that, it sets up default algs.Do you think that we should add the tests to other workflows? (FIPS for example.)