Re-enable Federated Access Token in user sessions

Closes #25290

Signed-off-by: wojnarfilip <fwojnar@redhat.com>
This commit is contained in:
wojnarfilip 2023-12-04 08:36:20 +01:00 committed by Alexander Schwartz
parent baf6186863
commit 925c5572ad

View file

@ -513,6 +513,7 @@ public class DefaultTokenExchangeProvider implements TokenExchangeProvider {
// this must exist so that we can obtain access token from user session if idp's store tokens is off
userSession.setNote(IdentityProvider.EXTERNAL_IDENTITY_PROVIDER, externalIdpModel.get().getAlias());
userSession.setNote(IdentityProvider.FEDERATED_ACCESS_TOKEN, subjectToken);
context.addSessionNotesToUserSession(userSession);