[SIDP-263] - Suggest adding defaultSigningCredentialRef to the AnonymousRelyingParty element in the default config
[SIDP-276] - Example RDB Connector, quote principal
[SIDP-277] - Incorrect null check for request context in UsernamePasswordServlet
+[SIDP-279] - IdP should log NameID for auditing
[SIDP-280] - when an Idp has no outside (WAN) access Idp fails to collect or release attributes
[SIDP-285] - Use $IDP_SCOPE$ to populate IdP scope in conf-tmpl\attribute-resolver.xml
[SIDP-291] - Update libs for 2.1.3 release
|| supportedNameFormats.contains(nameIdEncoder.getNameFormat())) {
log.debug("Using attribute {} supporting NameID format {} to create the NameID.", attribute
.getId(), nameIdEncoder.getNameFormat());
- return nameIdEncoder.encode(attribute);
+ NameID nameIdentifier = nameIdEncoder.encode(attribute);
+ requestContext.setSubjectNameIdentifier(nameIdentifier);
+ return nameIdentifier;
}
}
}
/** The response to the SAML request. */
private StatusResponseType samlResponse;
+
+ /** The unencrypted NameID for the SAML response. */
+ private NameID unencryptedNameId;
/**
* Gets the response to the SAML request.
public void setSAMLResponse(StatusResponseType response) {
samlResponse = response;
}
+
+ /**
+ * Gets the unencrypted NameID for the SAML response.
+ *
+ * @return unencrypted NameID for the SAML response
+ */
+ public NameID getUnencryptedNameId() {
+ return unencryptedNameId;
+ }
+
+ /**
+ * Sets the unencrypted NameID for the SAML response.
+ *
+ * @param id unencrypted NameID for the SAML response
+ */
+ public void setUnencryptedNameId(NameID id) {
+ unencryptedNameId = id;
+ }
/** {@inheritDoc} */
public String toString() {
StringBuilder entryString = new StringBuilder(super.toString());
- NameID nameIdentifier = null;
StringBuilder assertionIds = new StringBuilder();
if (samlResponse instanceof Response) {
for (Assertion assertion : assertions) {
assertionIds.append(assertion.getID());
assertionIds.append(",");
-
- if (nameIdentifier == null) {
- if (assertion.getSubject() != null) {
- nameIdentifier = assertion.getSubject().getNameID();
- }
- }
}
}
}
- if (nameIdentifier != null) {
- entryString.append(nameIdentifier.getValue());
+ if (unencryptedNameId != null) {
+ entryString.append(unencryptedNameId.getValue());
}
entryString.append("|");