Note release attributes when including the attribute statement within the IdP; SIDP-181
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 17 Apr 2008 15:05:10 +0000 (15:05 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 17 Apr 2008 15:05:10 +0000 (15:05 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2724 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml1/ShibbolethSSOProfileHandler.java
src/main/java/edu/internet2/middleware/shibboleth/idp/profile/saml2/SSOProfileHandler.java

index dc1f1be..edec55d 100644 (file)
@@ -257,7 +257,7 @@ public class ShibbolethSSOProfileHandler extends AbstractSAML1ProfileHandler {
                 AttributeStatement attributeStatement = buildAttributeStatement(requestContext,
                         "urn:oasis:names:tc:SAML:1.0:cm:bearer");
                 if (attributeStatement != null) {
-                    requestContext.setRequestedAttributes(requestContext.getAttributes().keySet());
+                    requestContext.setReleasedAttributes(requestContext.getAttributes().keySet());
                     statements.add(attributeStatement);
                 }
             }
index dea3dc2..b3c4fb2 100644 (file)
@@ -249,7 +249,7 @@ public class SSOProfileHandler extends AbstractSAML2ProfileHandler {
             if (requestContext.getProfileConfiguration().includeAttributeStatement()) {
                 AttributeStatement attributeStatement = buildAttributeStatement(requestContext);
                 if (attributeStatement != null) {
-                    requestContext.setRequestedAttributes(requestContext.getAttributes().keySet());
+                    requestContext.setReleasedAttributes(requestContext.getAttributes().keySet());
                     statements.add(attributeStatement);
                 }
             }