<div dir="ltr"><div style="font-size:12.8000001907349px">Hi,</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">We are a facing problem to prepare a servlet to handle external authentication.</div><div style="font-size:12.8000001907349px">Thread link:: <a href="http://shibboleth.1660669.n2.nabble.com/Control-not-RET-to-ConsumerURL-Idp3-1-1-td7616278.html">Control-not-RET-to-ConsumerURL-Idp3-1-1</a></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">As part of IdP 3.1.1 upgrade , we are using 'Auth/External' .Later we tap the SAML Response at our registered ConsumerURL once Authentication is successful </span><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><b>Construction of principle is as follows::</b></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div>                             Principal principal = new UsernamePrincipal(principleName);<br></div><div><span style="white-space:pre-wrap">                          </span>Subject subj = new Subject();</div><div><span style="white-space:pre-wrap">                            </span>subj.getPrincipals().add(principal);</div><div><span style="white-space:pre-wrap">                             </span>request.setAttribute(ExternalAuthentication.PRINCIPAL_KEY, principal);</div><div><span style="white-space:pre-wrap">                          </span>request.setAttribute(ExternalAuthentication.PRINCIPAL_NAME_KEY, key); <b style="color:rgb(255,0,0)"><span style="white-space:pre-wrap">     </span></b></div><div><span style="white-space:pre-wrap">                             </span>request.setAttribute(ExternalAuthentication.SUBJECT_KEY, subj);</div><div>                              String key ="";<br></div><div><div><b><font color="#ff0000"><span style="white-space:pre-wrap">                        </span>ExternalAuthentication.finishExternalAuthentication(key, request, response);</font></b><br></div><div><b><font color="#ff0000"><br></font></b></div><div><font color="#000000"><b>Our </b><b>external-authn-config.XML construction </b>is as follows::</font></div><div><br></div><div><font color="#000000"><b>---------------------------------</b><b>external-authn-config.XML-----------------------------------------</b></font></div><div><b><div><font color="#0000ff"><b><div style="display:inline!important">    <bean id="shibboleth.authn.External.externalAuthnPath" class="java.lang.String"</div></b><br></font></div><div><font color="#0000ff">        c:_0="contextRelative:/ExternalLoginServlet?</font><font color="#ff00ff">conversation</font><font color="#0000ff">=abc" /></font></div><div><font color="#000000"><b>---------------------------------</b><font style="font-weight:normal"><b>external-authn-config.XML-----------------------------------------</b></font></font><br></div><div style="color:rgb(255,0,0)"><br></div></b></div></div><div>But,</div><div>a) The control is not returning to our registered ConsumerURL from IdP</div><div>b) Error at the console :<b><font color="#ff0000">  No conversation state found in session"</font></b></div><div><br></div><div>Please suggest...</div></div></div>