<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>I was able to integrate that snippet into the original
      mfa-authn-config.xml bit I had too achieve what I was going for:</p>
    <p>
      <blockquote type="cite"><bean id="checkSecondFactor"
        parent="shibboleth.ContextFunctions.Scripted"
        factory-method="inlineScript">
        <br>
                <constructor-arg>
        <br>
                    <value>
        <br>
                    <![CDATA[
        <br>
                        nextFlow = "authn/Duo";
        <br>
                        authCtx =
input.getSubcontext("net.shibboleth.idp.authn.context.AuthenticationContext");<br>
                        mfaCtx =
authCtx.getSubcontext("net.shibboleth.idp.authn.context.MultiFactorAuthenticationContext");<br>
                           if (mfaCtx.isAcceptable()) {
        <br>
                                nextFlow=null;
        <br>
        }
        <br>
                        value =
profileContext.getSubcontext("net.shibboleth.idp.profile.context.RelyingPartyContext").getRelyingPartyId();<br>
                        if (value == 'entityIDhere')
        <br>
                        {
        <br>
                                nextFlow = "authn/Duo";
        <br>
                        }
        <br>
                        nextFlow;  // pass control to second factor or
        end with the first
        <br>
                    ]]>
        <br>
                    </value>
        <br>
                </constructor-arg>
        <br>
            </bean>
      </blockquote>
      I know it isn't the way it's supposed to be done, but it's simple
      and works for our use case.</p>
    <pre class="moz-signature" cols="72">-- 
Brandon McKean
IT / Systems
Linux Administrator
(540)568-4235</pre>
    <div class="moz-cite-prefix">On 03/31/2017 06:08 PM, Michael A Grady
      wrote:<br>
    </div>
    <blockquote
      cite="mid:E683DA07-5352-439B-BE2A-091155374B75@unicon.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <br class="">
      <div>
        <blockquote type="cite" class="">
          <div class="">On Mar 31, 2017, at 5:03 PM, Andrew Morgan <<a
              moz-do-not-send="true" href="mailto:morgan@orst.edu"
              class="">morgan@orst.edu</a>> wrote:</div>
          <br class="Apple-interchange-newline">
          <div class=""><span style="font-family: Helvetica; font-size:
              14px; font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; orphans:
              auto; text-align: start; text-indent: 0px; text-transform:
              none; white-space: normal; widows: auto; word-spacing:
              0px; -webkit-text-stroke-width: 0px; float: none; display:
              inline !important;" class="">Do I get it from Michael's
              code snippet:</span><br style="font-family: Helvetica;
              font-size: 14px; font-style: normal; font-variant-caps:
              normal; font-weight: normal; letter-spacing: normal;
              orphans: auto; text-align: start; text-indent: 0px;
              text-transform: none; white-space: normal; widows: auto;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;"
              class="">
            <br style="font-family: Helvetica; font-size: 14px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; orphans:
              auto; text-align: start; text-indent: 0px; text-transform:
              none; white-space: normal; widows: auto; word-spacing:
              0px; -webkit-text-stroke-width: 0px;" class="">
            <span style="font-family: Helvetica; font-size: 14px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; orphans:
              auto; text-align: start; text-indent: 0px; text-transform:
              none; white-space: normal; widows: auto; word-spacing:
              0px; -webkit-text-stroke-width: 0px; float: none; display:
              inline !important;" class="">profileContext.getSubcontext("net.shibboleth.idp.profile.context.RelyingPartyContext").getRelyingPartyId();</span><br
              style="font-family: Helvetica; font-size: 14px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; orphans:
              auto; text-align: start; text-indent: 0px; text-transform:
              none; white-space: normal; widows: auto; word-spacing:
              0px; -webkit-text-stroke-width: 0px;" class="">
          </div>
        </blockquote>
        <br class="">
      </div>
      <div>Just to give credit where credit is due, Josh O'Dowd had
        provided that back in mid-February. :-)</div>
      <br class="">
      <div class="">
        <div style="color: rgb(0, 0, 0); font-family: Helvetica;
          font-size: 14px; font-style: normal; font-variant-caps:
          normal; font-weight: normal; letter-spacing: normal; orphans:
          auto; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; widows: auto; word-spacing: 0px;
          -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
          0px;">--<br class="">
          Michael A. Grady<br class="">
          IAM Architect, Unicon, Inc.</div>
        <div style="color: rgb(0, 0, 0); font-family: Helvetica;
          font-size: 14px; font-style: normal; font-variant-caps:
          normal; font-weight: normal; letter-spacing: normal; orphans:
          auto; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; widows: auto; word-spacing: 0px;
          -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
          0px;" class=""><br class="">
        </div>
        <br class="Apple-interchange-newline">
      </div>
      <br class="">
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>