Fix 10978: JIT provisioned users to primary user store are having the secondary user store domain appended to them in the tokens issued
Fix
@@ -151,9 +151,9 @@ public class PostAuthAssociationHandler extends AbstractPostAuthnHandler {
StepConfig stepConfig) throws PostAuthenticationFailedException {
SequenceConfig sequenceConfig = context.getSequenceConfig();
+ UserCoreUtil.setDomainInThreadLocal(UserCoreUtil.extractDomainFromName(associatedLocalUserName));
String fullQualifiedAssociatedUserId = FrameworkUtils.prependUserStoreDomainToName(
associatedLocalUserName + UserCoreConstants.TENANT_DOMAIN_COMBINER + context.getTenantDomain());
- UserCoreUtil.setDomainInThreadLocal(UserCoreUtil.extractDomainFromName(associatedLocalUserName));
sequenceConfig.setAuthenticatedUser(
AuthenticatedUser.createLocalAuthenticatedUserFromSubjectIdentifier(fullQualifiedAssociatedUserId));
sequenceConfig.getApplicationConfig().setMappedSubjectIDSelected(true);
