External to Internal Token exchange fails with Null pointer Exception if the user is not yet registered (first time token exchange)
Closes #16059 Signed-off-by: Douglas Palmer <dpalmer@redhat.com>
This commit is contained in:
parent
2b2207af93
commit
e99bd4aa3a
1 changed files with 1 additions and 1 deletions
|
@ -588,7 +588,7 @@ public class DefaultTokenExchangeProvider implements TokenExchangeProvider {
|
|||
|
||||
if (! context.getIdpConfig().isTransientUsers()) {
|
||||
FederatedIdentityModel federatedIdentityModel = new FederatedIdentityModel(context.getIdpConfig().getAlias(), context.getId(),
|
||||
context.getUsername(), context.getToken());
|
||||
context.getModelUsername(), context.getToken());
|
||||
session.users().addFederatedIdentity(realm, user, federatedIdentityModel);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue