Extract constant "false" to field so default for AttributePush can be toggled by...
authorgilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 23 Aug 2005 14:27:22 +0000 (14:27 +0000)
committergilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 23 Aug 2005 14:27:22 +0000 (14:27 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1820 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/provider/ShibbolethV1SSOHandler.java

index e29284b..081e678 100644 (file)
@@ -271,6 +271,8 @@ public class ShibbolethV1SSOHandler extends SSOHandler implements IdPProtocolHan
                                                + nameId.getFormat() + ").");
        }
 
+    public static boolean pushAttributeDefault = false;
+    
        private void respondWithPOST(HttpServletRequest request, HttpServletResponse response, IdPProtocolSupport support,
                        LocalPrincipal principal, RelyingParty relyingParty, EntityDescriptor descriptor, String acceptanceURL,
                        SAMLNameIdentifier nameId, String authenticationMethod, SAMLSubject authNSubject) throws SAMLException,
@@ -283,7 +285,7 @@ public class ShibbolethV1SSOHandler extends SSOHandler implements IdPProtocolHan
                                getAuthNTime(request), authNSubject));
 
                // Package attributes for push, if necessary.
-               if (!relyingParty.isLegacyProvider() && pushAttributes(false, relyingParty)) {
+               if (!relyingParty.isLegacyProvider() && pushAttributes(pushAttributeDefault, relyingParty)) {
                        log.info("Resolving attributes for push.");
                        generateAttributes(support, principal, relyingParty, assertions, request);
                }