[java-identity-provider COMMIT] in /trunk/idp-profile-spring/src: main/java/net/shibboleth/idp/profile/spring/relying...
noreply at shibboleth.net
noreply at shibboleth.net
Tue Apr 29 05:10:35 EDT 2014
Author: rdw
Date: Tue Apr 29 05:10:35 2014
New Revision: 5791
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5791&view=rev
Log:
IDP-401 "allowDelegation" for SAML2 SSO profiles
Modified:
trunk/idp-profile-spring/src/main/java/net/shibboleth/idp/profile/spring/relyingparty/saml/SAML2BrowserSSOProfileParser.java
trunk/idp-profile-spring/src/test/java/net/shibboleth/idp/profile/spring/relyingparty/saml/SAML2BrowserSSOProfileTest.java
trunk/idp-profile-spring/src/test/resources/net/shibboleth/idp/profile/spring/relyingparty/saml/saml2SSOValues.xml
Modified: trunk/idp-profile-spring/src/main/java/net/shibboleth/idp/profile/spring/relyingparty/saml/SAML2BrowserSSOProfileParser.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-spring/src/main/java/net/shibboleth/idp/profile/spring/relyingparty/saml/SAML2BrowserSSOProfileParser.java?rev=5791&r1=5790&r2=5791&view=diff
==============================================================================
--- trunk/idp-profile-spring/src/main/java/net/shibboleth/idp/profile/spring/relyingparty/saml/SAML2BrowserSSOProfileParser.java (original)
+++ trunk/idp-profile-spring/src/main/java/net/shibboleth/idp/profile/spring/relyingparty/saml/SAML2BrowserSSOProfileParser.java Tue Apr 29 05:10:35 2014
@@ -150,6 +150,10 @@
element.getAttributeNS(null, "skipEndpointValidationWhenSigned"));
}
+ if (element.hasAttributeNS(null, "allowDelegation")) {
+ builder.addPropertyValue("allowingDelegation", element.getAttributeNS(null, "allowDelegation"));
+ }
+
setPropertiesFromRelyingParty(element, builder);
}
Modified: trunk/idp-profile-spring/src/test/java/net/shibboleth/idp/profile/spring/relyingparty/saml/SAML2BrowserSSOProfileTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-spring/src/test/java/net/shibboleth/idp/profile/spring/relyingparty/saml/SAML2BrowserSSOProfileTest.java?rev=5791&r1=5790&r2=5791&view=diff
==============================================================================
--- trunk/idp-profile-spring/src/test/java/net/shibboleth/idp/profile/spring/relyingparty/saml/SAML2BrowserSSOProfileTest.java (original)
+++ trunk/idp-profile-spring/src/test/java/net/shibboleth/idp/profile/spring/relyingparty/saml/SAML2BrowserSSOProfileTest.java Tue Apr 29 05:10:35 2014
@@ -53,6 +53,7 @@
Assert.assertEquals(profile.getAssertionLifetime(), 5 * 60 * 1000);
Assert.assertTrue(profile.getAdditionalAudiencesForAssertion().isEmpty());
Assert.assertTrue(profile.includeConditionsNotBefore());
+ Assert.assertFalse(profile.isAllowingDelegation());
Assert.assertNull(profile.getArtifactConfiguration());
Assert.assertEquals(profile.getInboundSubflowId(), "SecurityPolicy.SAML2SSO");
Assert.assertNull(profile.getOutboundSubflowId());
@@ -69,6 +70,7 @@
assertConditionalPredicate(profile.getEncryptAssertionsPredicate());
assertFalsePredicate(profile.getEncryptNameIDsPredicate());
Assert.assertTrue(profile.isEncryptionOptional());
+ Assert.assertTrue(profile.isAllowingDelegation());
Assert.assertEquals(profile.getProxyCount(), 0);
Assert.assertTrue(profile.getProxyAudiences().isEmpty());
Modified: trunk/idp-profile-spring/src/test/resources/net/shibboleth/idp/profile/spring/relyingparty/saml/saml2SSOValues.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-spring/src/test/resources/net/shibboleth/idp/profile/spring/relyingparty/saml/saml2SSOValues.xml?rev=5791&r1=5790&r2=5791&view=diff
==============================================================================
--- trunk/idp-profile-spring/src/test/resources/net/shibboleth/idp/profile/spring/relyingparty/saml/saml2SSOValues.xml (original)
+++ trunk/idp-profile-spring/src/test/resources/net/shibboleth/idp/profile/spring/relyingparty/saml/saml2SSOValues.xml Tue Apr 29 05:10:35 2014
@@ -10,6 +10,7 @@
includeAttributeStatement="false" securityPolicyRef="ignore"
maximumSPSessionLifetime="1" encryptionOptional="true"
encryptAttributes="always"
+ allowDelegation="true"
skipEndpointValidationWhenSigned="true" outboundArtifactType="7654"
inboundFlowId="sso2ibfid" outboundFlowId="sso2obfid">
</rp:ProfileConfiguration>
More information about the commits
mailing list