Wrong value for VALIDATED_ID_TOKEN stored in the brokered identity context for external token exchange

Closes #23985

Signed-off-by: Douglas Palmer <dpalmer@redhat.com>
This commit is contained in:
Douglas Palmer 2023-11-22 11:52:49 -08:00 committed by Pedro Igor
parent 2ec1d2f7ea
commit efde3adf60

View file

@ -873,7 +873,7 @@ public class OIDCIdentityProvider extends AbstractOAuth2IdentityProvider<OIDCIde
}
if (idTokenType) {
context.getContextData().put(VALIDATED_ID_TOKEN, subjectToken);
context.getContextData().put(VALIDATED_ID_TOKEN, parsedToken);
} else {
context.getContextData().put(KeycloakOIDCIdentityProvider.VALIDATED_ACCESS_TOKEN, parsedToken);
}