<div dir="ltr"><div>Hello, I little update: setting the AuthnContextClassRef works (I used "exact" as operator parameter, but I don't know what are the supported values)</div><div>but only if there's not other AuthnContextClassRef defined.</div><div>Regardless if it is a good solution or not, is there a way to add (and not replace) a second AuthnContextClassRef ?</div><div>Thank you</div><div>Marco Naimoli<br></div><div><br> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 28 set 2021 alle ore 16:01 Marco Naimoli <<a href="mailto:marco.naimoli@unipd.it">marco.naimoli@unipd.it</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello, I'm using MFA on IDP4, that can use RemoteUser authentication; using remoteuser-authn-config.xml</div><div>configuration file I choose among various path (example Authn/path1, Authn/path2) the right path using the AuthnContextClassRef sent from the SP.</div><div>Now I need to choose using something that a user can select from authenticaton screen (for example: based on the user selection the remoteuser-authn-config.xml could select Authn/path3);</div><div>a possible solution could be to use, on remoteuser-authn-config.xml, the eventId of the user selection, but I don't know if it's possible and how; otherwise I could set an AuthnContextClassRef <br></div><div>from the MFA script: I tried using the script:</div><div>-------------<br></div><div>authCtx = input.getSubcontext("net.shibboleth.idp.authn.context.AuthenticationContext");</div><div>var AuthnContextClassRefPrincipal = Java.type("net.shibboleth.idp.saml.authn.principal.AuthnContextClassRefPrincipal");<br> tkp = new AuthnContextClassRefPrincipal("myContextClassRef");<br> authCtx.addRequestedPrincipalContext("operator",tkp,false);</div><div>-------------</div><div>but I don't know what to put on the "operator" field; but, more generally, I don't know if any of the <br></div><div>two methods are the right approach to this problem</div><div>Another way could be to "clone" the RemoteUser flow to a new one (creating a new module ?),</div><div>but it seems a complex solution for a (apparently) simple problem</div><div>Could anyone help me ?<br></div><div>Thank you</div><div>Marco Naimoli<br></div><div><br></div></div>
</blockquote></div>