[java-identity-provider COMMIT] /trunk/idp-conf/src/main/resources/conf/authn/mfa-authn-config.xml

noreply at shibboleth.net noreply at shibboleth.net
Mon Jul 18 22:47:38 EDT 2016


Author: scantor
Date: Mon Jul 18 22:47:38 2016
New Revision: 8296

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=8296&view=rev
Log:
Switch primary context variable from "context" to "input" to avoid Rhino conflict.

Modified:
    trunk/idp-conf/src/main/resources/conf/authn/mfa-authn-config.xml

Modified: trunk/idp-conf/src/main/resources/conf/authn/mfa-authn-config.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/conf/authn/mfa-authn-config.xml?rev=8296&r1=8295&r2=8296&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/conf/authn/mfa-authn-config.xml	(original)
+++ trunk/idp-conf/src/main/resources/conf/authn/mfa-authn-config.xml	Mon Jul 18 22:47:38 2016
@@ -66,13 +66,13 @@
                 nextFlow = "authn/Password";
 
                 // Go straight to second factor if we have to, or set up for an attribute lookup first.
-                authCtx = context.getSubcontext("net.shibboleth.idp.authn.context.AuthenticationContext");
+                authCtx = input.getSubcontext("net.shibboleth.idp.authn.context.AuthenticationContext");
                 mfaCtx = authCtx.getSubcontext("net.shibboleth.idp.authn.context.MultiFactorAuthenticationContext");
                 if (mfaCtx.isAcceptable()) {
                     // Attribute check is required to decide if first factor alone is enough.
-                    resCtx = context.getSubcontext(
+                    resCtx = input.getSubcontext(
                         "net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext", true);
-                    resCtx.setPrincipal(context.getSubcontext(
+                    resCtx.setPrincipal(input.getSubcontext(
                         "net.shibboleth.idp.authn.context.SubjectCanonicalizationContext").getPrincipalName());
                     resCtx.getRequestedIdPAttributeNames().add("allowedLoginMethods");
                     resCtx.resolveAttributes(custom);
@@ -84,7 +84,7 @@
                         nextFlow = null;
                     }
                     
-                    context.removeSubcontext(resCtx);   // cleanup
+                    input.removeSubcontext(resCtx);   // cleanup
                 }
                 
                 nextFlow;   // pass control to second factor or end with the first



More information about the commits mailing list