<div dir="ltr">Since i am using external authentication log-in handler, I am querying our database in my defined servlet(externalAuthnPath=&#39;url&#39;) which is configured in handler.xml. I think that&#39;s why, we are able to get the principle at SP without having DataConnector in attribute-resolver.xml.<div><br></div><div>Please don&#39;t consider the below is duplicate information.</div><div>I am querying our database in my defined servlet(externalAuthnPath in handler.xml) by sending the credentials entered in login.jsp. then our server is giving response with some required information, and the same information we are using at SP side by providing Attribute-Definition in attribute-resolver.xml but No <b>DataConnector </b>in attribute-resolver.xml.</div><div><br></div><div>So here, Querying the database in servlet is equals to putting the DataConnector?</div><div><br></div><div>Is it the reason to get principle at SP side without having Data Connector?</div><div><br></div><div>Thanks for your time.</div><div>  </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 6, 2014 at 12:46 AM, Andrew Morgan <span dir="ltr">&lt;<a href="mailto:morgan@orst.edu" target="_blank">morgan@orst.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 5 Dec 2014, Surinaidu Majji wrote:<br>
<br>
&gt; Hello @Andrew Morgan, Thanks a lot for your support.Definitely i will ask<br>
&gt; questions to get clarification.<br>
&gt; Once an authentication is done, i will get the necessary attributes from<br>
&gt; SAMLResponse through attribute-resolver,attribute-filter.xml. So i can get<br>
&gt; my necessary user permissions by querying our database through Data<br>
&gt; Connector.<br>
&gt;<br>
&gt; But my doubt is how could i get the Principal(includes email, acctype)<br>
&gt; without querying  database, I think this is because of that we are sending<br>
&gt; req.setAttribute(LoginHandler.Principal_Key, login.getAttributes()); to<br>
&gt; AuthenticationEngine.returnToAuthenticationengine(req,resp);<br>
&gt;<br>
&gt; By sending the  login.getAttributes() as principal to the<br>
&gt; AuthenticationEngine, we are able to get those in response by giving<br>
&gt; defining the &#39;xsi:type=&quot;PrincipalName&#39; id=&quot;principal&quot; in the<br>
&gt; attribute-resolver.xml.<br>
&gt;<br>
&gt; am i correct? Please let me know if i am wrong?<br>
<br>
</span>I don&#39;t know how id=&quot;principal&quot; works if you don&#39;t have a Data Connector<br>
defined.  From your other emails, it sounds like you aren&#39;t querying a<br>
database.  Either way, you&#39;ll need to get an appropriate Data Connector<br>
defined in attribute-resolver.xml and use that to retrieve attributes.<br>
<div class="HOEnZb"><div class="h5"><br>
        Andy<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</div></div></blockquote></div><br></div>