<div dir="ltr">Yes, Earlier we were not aware of significance of 'conversation' . Also the 'key' returned by 'startexternalAuthentication' API was empty, and conversation state was not preserved between 'startexternalAuthentication' and 'finishExternalAuthentication' as mentioned in the wiki doc , this was creating problem , <u>now it got rectified .</u><div><br></div><div>Pseudo code :<br></div><div><u>before login</u><br></div><div>key =<span style="font-size:12.8000001907349px">ExternalAuthentication.</span>startexternalAuthentication(request);<br></div><div>preserveKey();</div><div><u>after successful login </u><br></div><div><span style="font-size:12.8000001907349px">ExternalAuthentication.finish</span>externalAuthentication(key,request,response);<br></div><div><br></div><div>Please let us know in case of any gaps in our understanding(s) </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 17, 2015 at 7:41 PM, Cantor, Scott <span dir="ltr"><<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 6/17/15, 3:11 AM, "dev on behalf of Surinaidu Majji" <<a href="mailto:dev-bounces@shibboleth.net">dev-bounces@shibboleth.net</a> on behalf of <a href="mailto:pioneer.suri@gmail.com">pioneer.suri@gmail.com</a>> wrote:<br>
<br>
><br>
>Construction of principle is as follows::<br>
><br>
><br>
> Principal principal = new UsernamePrincipal(principleName);<br>
><br>
>Subject subj = new Subject();<br>
>subj.getPrincipals().add(principal);<br>
>request.setAttribute(ExternalAuthentication.PRINCIPAL_KEY, principal);<br>
>request.setAttribute(ExternalAuthentication.PRINCIPAL_NAME_KEY, key);<br>
>request.setAttribute(ExternalAuthentication.SUBJECT_KEY, subj);<br>
<br>
</span>You ignored everything I wrote you already about not doing all of that. Furthermore, what is key? It certainly isn't a principal name.<br>
<br>
> String key ="";<br>
<br>
Now you've cleared the key.<br>
<br>
>ExternalAuthentication.finishExternalAuthentication(key, request, response);<br>
<br>
And now you're trying to use an empty key as the conversation ID in the API.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Scott<br>
<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:dev-unsubscribe@shibboleth.net">dev-unsubscribe@shibboleth.net</a><br>
</font></span></blockquote></div><br></div>