[java-identity-provider] branch master updated: IDP-1446 - Create CAS transcoders
Scott Cantor
cantor.2 at osu.edu
Tue Dec 17 09:59:26 EST 2019
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=d81f136c51fe3e042ad4777efcb91c9337c8a7cf
The following commit(s) were added to refs/heads/master by this push:
new d81f136 IDP-1446 - Create CAS transcoders
d81f136 is described below
commit d81f136c51fe3e042ad4777efcb91c9337c8a7cf
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Dec 17 08:59:23 2019 -0600
IDP-1446 - Create CAS transcoders
https://issues.shibboleth.net/jira/browse/IDP-1446
Install CAS transcoders for scoped attributes.
---
idp-conf/src/main/resources/conf/attributes/default-rules.xml | 4 ++--
.../java/net/shibboleth/idp/test/flows/cas/SamlValidateFlowTest.java | 4 ++--
.../net/shibboleth/idp/test/flows/cas/ServiceValidateFlowTest.java | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/idp-conf/src/main/resources/conf/attributes/default-rules.xml b/idp-conf/src/main/resources/conf/attributes/default-rules.xml
index 79c0e15..45561ed 100644
--- a/idp-conf/src/main/resources/conf/attributes/default-rules.xml
+++ b/idp-conf/src/main/resources/conf/attributes/default-rules.xml
@@ -52,7 +52,7 @@
<property name="properties">
<props merge="true">
<prop key="id">eduPersonPrincipalName</prop>
- <prop key="transcoder">SAML2ScopedStringTranscoder SAML1ScopedStringTranscoder</prop>
+ <prop key="transcoder">SAML2ScopedStringTranscoder SAML1ScopedStringTranscoder CASScopedStringTranscoder</prop>
<prop key="saml2.name">urn:oid:1.3.6.1.4.1.5923.1.1.1.6</prop>
<prop key="saml1.name">urn:mace:dir:attribute-def:eduPersonPrincipalName</prop>
</props>
@@ -63,7 +63,7 @@
<property name="properties">
<props merge="true">
<prop key="id">eduPersonScopedAffiliation</prop>
- <prop key="transcoder">SAML2ScopedStringTranscoder SAML1ScopedStringTranscoder</prop>
+ <prop key="transcoder">SAML2ScopedStringTranscoder SAML1ScopedStringTranscoder CASScopedStringTranscoder</prop>
<prop key="saml2.name">urn:oid:1.3.6.1.4.1.5923.1.1.1.9</prop>
<prop key="saml1.name">urn:mace:dir:attribute-def:eduPersonScopedAffiliation</prop>
<prop key="description.en">Affiliation: Type of affiliation with Home Organization</prop>
diff --git a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/cas/SamlValidateFlowTest.java b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/cas/SamlValidateFlowTest.java
index 4f90f04..c05ac4a 100644
--- a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/cas/SamlValidateFlowTest.java
+++ b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/cas/SamlValidateFlowTest.java
@@ -96,7 +96,7 @@ public class SamlValidateFlowTest extends AbstractFlowTest {
assertTrue(responseBody.contains("<saml1:NameIdentifier>john</saml1:NameIdentifier>"));
assertTrue(responseBody.contains("<saml1:Attribute AttributeName=\"uid\" AttributeNamespace=\"http://www.ja-sig.org/products/cas/\"><saml1:AttributeValue xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"xsd:string\">john</saml1:AttributeValue></saml1:Attribute>"));
assertTrue(responseBody.contains("<saml1:Attribute AttributeName=\"mail\" AttributeNamespace=\"http://www.ja-sig.org/products/cas/\"><saml1:AttributeValue xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"xsd:string\">john at example.org</saml1:AttributeValue></saml1:Attribute>"));
- assertTrue(responseBody.contains("<saml1:Attribute AttributeName=\"eduPersonPrincipalName\" AttributeNamespace=\"http://www.ja-sig.org/products/cas/\"><saml1:AttributeValue xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"xsd:string\">john</saml1:AttributeValue></saml1:Attribute>"));
+ assertTrue(responseBody.contains("<saml1:Attribute AttributeName=\"eduPersonPrincipalName\" AttributeNamespace=\"http://www.ja-sig.org/products/cas/\"><saml1:AttributeValue xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"xsd:string\">john at example.org</saml1:AttributeValue></saml1:Attribute>"));
assertPopulatedAttributeContext((ProfileRequestContext) outcome.getOutput().get(END_STATE_OUTPUT_ATTR_NAME));
}
@@ -143,7 +143,7 @@ public class SamlValidateFlowTest extends AbstractFlowTest {
assertTrue(responseBody.contains("<saml1:NameIdentifier>john</saml1:NameIdentifier>"));
assertTrue(responseBody.contains("<saml1:Attribute AttributeName=\"uid\" AttributeNamespace=\"http://www.ja-sig.org/products/cas/\"><saml1:AttributeValue xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"xsd:string\">john</saml1:AttributeValue></saml1:Attribute>"));
assertTrue(responseBody.contains("<saml1:Attribute AttributeName=\"mail\" AttributeNamespace=\"http://www.ja-sig.org/products/cas/\"><saml1:AttributeValue xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"xsd:string\">john at example.org</saml1:AttributeValue></saml1:Attribute>"));
- assertTrue(responseBody.contains("<saml1:Attribute AttributeName=\"eduPersonPrincipalName\" AttributeNamespace=\"http://www.ja-sig.org/products/cas/\"><saml1:AttributeValue xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"xsd:string\">john</saml1:AttributeValue></saml1:Attribute>"));
+ assertTrue(responseBody.contains("<saml1:Attribute AttributeName=\"eduPersonPrincipalName\" AttributeNamespace=\"http://www.ja-sig.org/products/cas/\"><saml1:AttributeValue xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"xsd:string\">john at example.org</saml1:AttributeValue></saml1:Attribute>"));
assertPopulatedAttributeContext((ProfileRequestContext) outcome.getOutput().get(END_STATE_OUTPUT_ATTR_NAME));
}
diff --git a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/cas/ServiceValidateFlowTest.java b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/cas/ServiceValidateFlowTest.java
index 51c6cdf..e112f88 100644
--- a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/cas/ServiceValidateFlowTest.java
+++ b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/cas/ServiceValidateFlowTest.java
@@ -129,7 +129,7 @@ public class ServiceValidateFlowTest extends AbstractFlowTest {
assertTrue(responseBody.contains("<cas:user>john</cas:user>"));
assertTrue(responseBody.contains("<cas:attributes>"));
assertTrue(responseBody.contains("<cas:uid>john</cas:uid>"));
- assertTrue(responseBody.contains("<cas:eduPersonPrincipalName>john</cas:eduPersonPrincipalName>"));
+ assertTrue(responseBody.contains("<cas:eduPersonPrincipalName>john at example.org</cas:eduPersonPrincipalName>"));
assertTrue(responseBody.contains("<cas:mail>john at example.org</cas:mail>"));
assertFalse(responseBody.contains("<cas:proxyGrantingTicket>"));
assertFalse(responseBody.contains("<cas:proxies>"));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list