<div dir="ltr">Thank you very much @Andy for your reply after looking into my query deeply.<div>I got better understanding about shibboleth flow when i saw your reply.</div><div> </div><div><span style="font-size:12.8000001907349px">The Shibboleth IDP performs authentication via a variety of methods.</span><br></div><div><span style="font-size:12.8000001907349px">-&gt;Here i am using &#39;ExternalAuth&#39; in which it goes to the my custom Url to make further processing.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">If you want to change the login.jsp script to</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">validate credentials against a different database, you can do that.</span><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">-&gt; Yes I can do that and here i am thinking that only to deal with one login.jsp for both the databases, any way that depends on my design.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">After authentication is successful, the Shibboleth IDP will attempt to</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">resolve attributes (find more information about) the principal returned by</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">the authentication step</span><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">- since i am using &#39;ExternalAuth&#39;, and i am not  using any &#39;UserName&#39; particularly</span></div><div><span style="font-size:12.8000001907349px"> i am writing the code which is according to the shibboleth website for externalAuth(use subject to get control over principal)</span></div><div><span style="font-size:12.8000001907349px"> </span></div><div><span style="font-size:12.8000001907349px">This code is written after authentication is successful against my database.</span></div><div><div style><span style="font-size:12.8000001907349px">request.setAttribute(globalStrings.getForceAuthn(), false);</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">                                </span>Principal principal = new UsernamePrincipal(login.getAttributes());</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">                                </span>Subject subj = new Subject();</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">                                </span>subj.getPrincipals().add(principal);</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">                                </span>request.setAttribute(LoginHandler.PRINCIPAL_KEY, principal);</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">                                </span>request.setAttribute(LoginHandler.PRINCIPAL_NAME_KEY, personId);</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">                                </span>request.setAttribute(LoginHandler.SUBJECT_KEY, subj);</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">                                </span>request.setAttribute(globalStrings.getAuthnMethod(), this.authenticationMethod);</span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">                                </span>AuthenticationEngine.returnToAuthenticationEngine(request, response);</span></div></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"> </span><span style="font-size:12.8000001907349px">The attribute resolution is configured in </span><span style="font-size:12.8000001907349px">attribute-resolver.xml.</span></div><div><span style="font-size:12.8000001907349px">- The below is my attribute-resolver.xml to resolve the attributes, please look into it.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><div style><span style="font-size:12.8000001907349px">&lt;resolver:AttributeDefinition id=&quot;principal&quot; xsi:type=&quot;PrincipalName&quot; xmlns=&quot;urn:mace:shibboleth:2.0:resolver:ad&quot;&gt;</span></div><div style><span style="font-size:12.8000001907349px"><br></span></div><div style><span style="font-size:12.8000001907349px">   &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML2StringNameID&quot; /&gt;</span></div><div style><span style="font-size:12.8000001907349px">    </span></div><div style><span style="font-size:12.8000001907349px"><span class="" style="white-space:pre">                </span>&lt;resolver:AttributeEncoder xsi:type=&quot;SAML2Base64&quot; xmlns=&quot;urn:mace:shibboleth:2.0:attribute:encoder&quot;</span></div><div style><span style="font-size:12.8000001907349px">                                name=&quot;ORG_ATTRIBUTE_64&quot; /&gt;</span></div><div style><span style="font-size:12.8000001907349px">  &lt;resolver:AttributeEncoder xsi:type=&quot;SAML2String&quot; xmlns=&quot;urn:mace:shibboleth:2.0:attribute:encoder&quot;</span></div><div style><span style="font-size:12.8000001907349px">                                name=&quot;ORG_ATTRIBUTE&quot; /&gt;</span></div></div><div style><span style="font-size:12.8000001907349px">for the above, there is no &quot;dataconnector&quot; is used. </span></div><div style><span style="font-size:12.8000001907349px"><br></span></div><div style><span style="font-size:12.8000001907349px">attribute-filter.xml:</span></div><div style><span style="font-size:12.8000001907349px"><br></span></div><div>&lt;afp:AttributeFilterPolicy id=&quot;releaseBasicAttributesToAnyone&quot;&gt;</div><div>        &lt;afp:PolicyRequirementRule xsi:type=&quot;basic:ANY&quot;/&gt;</div><div>        &lt;afp:AttributeRule attributeID=&quot;principal&quot;&gt;</div><div>                &lt;afp:PermitValueRule xsi:type=&quot;basic:ANY&quot; /&gt;</div><div>        &lt;/afp:AttributeRule&gt;</div><div style>    &lt;/afp:AttributeFilterPolicy&gt;<span style="font-size:12.8000001907349px"> </span></div><div style><span style="font-size:12.8000001907349px"><br></span></div><div style><span style="font-size:12.8000001907349px">So that i could be able to get the above principal(email, acctType etc) at SP side in &#39;SAMLResponse&#39;.</span></div><div style><span style="font-size:12.8000001907349px"><br></span></div><div><br></div><div><span style="font-size:12.8000001907349px">Common places to lookup additional information </span><span style="font-size:12.8000001907349px">are a database or LDAP.</span><br></div><div><span style="font-size:12.8000001907349px">- Here completely i am using our database, So there is no point of LDAP,</span></div><div><span style="font-size:12.8000001907349px">  you are saying additional information, can it be &#39;permissions of the user&#39; which is from</span></div><div><span style="font-size:12.8000001907349px"> our database?</span></div><div><span style="font-size:12.8000001907349px">- here how can get the required &#39;permission info&#39;(authorization) from our database,</span></div><div><span style="font-size:12.8000001907349px">- How to write it in the attribute-resolver.xml by using DataConnectors to get the perms of user.</span></div><div><span style="font-size:12.8000001907349px"> Please provide me some example for configuration which i can get the &#39;permissions of user&#39;.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">After attribute resolution is complete, the Shibboleth IDP will filter</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">those attributes according to the configuration in attribute-filter.xml.</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Only the attributes you configure will be released to the SP.</span><br style="font-size:12.8000001907349px"><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">The SP can then use those attributes to making authorization decisions.</span><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">- &gt; Yes, if i can do configuration in attribute-resolver and attribute-filter.xml, i can use at SP side</span></div><div><span style="font-size:12.8000001907349px">   from SAMLResponse.</span></div><div><span style="font-size:12.8000001907349px">If you can provide me answers for my above questions, i think i can complete my task.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Thank you for patience.  </span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 3, 2014 at 11:48 PM, 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 Wed, 3 Dec 2014, Surinaidu Majji wrote:<br>
<br>
&gt; Hello Paul,<br>
&gt; I am really very happy that i am getting lot of information from the Shib<br>
&gt; Users like you, but i do not know why i am not able to get the exact<br>
&gt; information which i required. I think i got the replies for my query but i<br>
&gt; could able to understand properly.<br>
&gt;<br>
&gt; Here my actual requirement is:<br>
&gt; Now i am using shibboleth idp which we own(External Idp) to do<br>
&gt; authentication. Here i use &#39;ExternalAuthn&#39; Login handler in handler.xml.<br>
&gt; Now the authentication is done by checking the credentials(from login.jsp)<br>
</span>&gt; with our *Server(database)*<br>
&gt;<br>
&gt; - The current requirement is like instead of using our *Server *to validate<br>
&gt; credentials(from login.jsp), i have to link this external idp to *other<br>
&gt; Server (database).*<br>
<span class="">&gt; That&#39;s why i wanted know about authorization for my application, but i<br>
&gt; could not able to achieve it.<br>
&gt; Please consider my request, because i do not have any other source to<br>
&gt; get my requirement done, If require i will post my entire authentication<br>
&gt; procedural steps which i have right now in my existing application.<br>
<br>
</span>I&#39;m having a little trouble understanding your situation, but hopefully my<br>
answers are relevant.<br>
<br>
The Shibboleth IDP performs authentication via a variety of methods.  You<br>
wrote that your existing IDP validates credentials against a database via<br>
a login.jsp script.  If you want to change the login.jsp script to<br>
validate credentials against a different database, you can do that.<br>
<br>
After authentication is successful, the Shibboleth IDP will attempt to<br>
resolve attributes (find more information about) the principal returned by<br>
the authentication step (usually a username or other identifier, such as<br>
employee number).  The attribute resolution is configured in<br>
attribute-resolver.xml.  Common places to lookup additional information<br>
are a database or LDAP.  For example, you might lookup the firstname,<br>
lastname, and email address of the principal.<br>
<br>
After attribute resolution is complete, the Shibboleth IDP will filter<br>
those attributes according to the configuration in attribute-filter.xml.<br>
Only the attributes you configure will be released to the SP.<br>
<br>
The SP can then use those attributes to making authorization decisions.<br>
<br>
I hope this helps!<br>
<br>
        Andy<br>
<div class="HOEnZb"><div class="h5">--<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>