@Override protected Map<String, List<Object>> retrievePersonAttributes(final String principalId, final Credential credential) { val wsFedCredentials = (WsFederationCredential) credential; if (this.configuration.getAttributesType() == WsFederationConfiguration.WsFedPrincipalResolutionAttributesType.WSFED) { return wsFedCredentials.getAttributes(); } if (this.configuration.getAttributesType() == WsFederationConfiguration.WsFedPrincipalResolutionAttributesType.CAS) { return super.retrievePersonAttributes(principalId, credential); } val mergedAttributes = new HashMap<String, List<Object>>(wsFedCredentials.getAttributes()); mergedAttributes.putAll(super.retrievePersonAttributes(principalId, credential)); return mergedAttributes; }
val attributes = retrievePersonAttributes(principalId, credential); if (attributes == null || attributes.isEmpty()) { LOGGER.debug("Principal id [{}] did not specify any attributes", principalId);