logger.debug(String.format("Extracted username for claim: %s and username is: %s", preferredUsername, username));
}
authenticationData.setUsername(username);
Collection<String> groupWhiteList = config.getExternalGroupsWhitelist();
authenticationData.setAuthorities(extractXOAuthUserAuthorities(attributeMappings, claims, groupWhiteList));
<BUG>Optional.ofNullable(attributeMappings).ifPresent(map -> authenticationData.setAttributeMappings(new HashMap<>(map)));
return authenticationData;</BUG>
}
logger.debug("No identity provider found for origin:"+getOrigin()+" and zone:"+IdentityZoneHolder.get().getId());
return null;

logger.debug(String.format("Extracted username for claim: %s and username is: %s", preferredUsername, username));
}
authenticationData.setUsername(username);
Collection<String> groupWhiteList = config.getExternalGroupsWhitelist();
authenticationData.setAuthorities(extractXOAuthUserAuthorities(attributeMappings, claims, groupWhiteList));
ofNullable(attributeMappings).ifPresent(map -> authenticationData.setAttributeMappings(new HashMap<>(map)));
return authenticationData;
}
logger.debug("No identity provider found for origin:"+getOrigin()+" and zone:"+IdentityZoneHolder.get().getId());
return null;
