[java-identity-provider] branch main updated: Add additional attribute to tests.
Scott Cantor
cantor.2 at osu.edu
Tue Jan 25 21:13:03 UTC 2022
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=ba5c0bd8d18805e72ad43ab1d66d22755391bc95
The following commit(s) were added to refs/heads/main by this push:
new ba5c0bd8d Add additional attribute to tests.
ba5c0bd8d is described below
commit ba5c0bd8d18805e72ad43ab1d66d22755391bc95
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Jan 25 16:12:59 2022 -0500
Add additional attribute to tests.
---
.../idp/test/flows/saml2/SAML2TestResponseValidator.java | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java
index 4abd9f590..324ba3e24 100644
--- a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java
+++ b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java
@@ -105,6 +105,9 @@ public class SAML2TestResponseValidator extends SAML2TestStatusResponseTypeValid
/** Expected attributes. */
@Nonnull public List<Attribute> expectedDesignatedAttributes;
+ /** Expected schacHomeOganization attribute. */
+ @Nonnull public Attribute homeOrgAttribute;
+
/** Expected uid attribute. */
@Nonnull public Attribute uidAttribute;
@@ -141,6 +144,15 @@ public class SAML2TestResponseValidator extends SAML2TestStatusResponseTypeValid
XMLObjectProviderRegistrySupport.getBuilderFactory().<XSAny>getBuilderOrThrow(
XSAny.TYPE_NAME);
+ // the expected schacHomeOganization attribute
+ homeOrgAttribute = builder.buildObject();
+ homeOrgAttribute.setName("urn:oid:1.3.6.1.4.1.25178.1.2.9");
+ homeOrgAttribute.setNameFormat(Attribute.URI_REFERENCE);
+ homeOrgAttribute.setFriendlyName("schacHomeOganization");
+ final XSAny orgValue = anyBuilder.buildObject(AttributeValue.DEFAULT_ELEMENT_NAME);
+ orgValue.setTextContent("example.org");
+ homeOrgAttribute.getAttributeValues().add(orgValue);
+
// the expected uid attribute
uidAttribute = builder.buildObject();
uidAttribute.setName("urn:oid:0.9.2342.19200300.100.1.1");
@@ -178,6 +190,7 @@ public class SAML2TestResponseValidator extends SAML2TestStatusResponseTypeValid
eduPersonScopedAffiliationAttribute.getAttributeValues().add(eduPersonScopedAffiliationAttributeValue);
expectedAttributes = new ArrayList<>();
+ expectedAttributes.add(homeOrgAttribute);
expectedAttributes.add(uidAttribute);
expectedAttributes.add(mailAttribute);
expectedAttributes.add(eppnAttribute);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list