<div dir="ltr">Hi all,<div><br></div><div>Any pointers to this? I was looking at the SAMLAuthNRequestParser class and it seems we are parsing the subject from the incoming request. Now the question is how can I access it in my custom authenticator? </div><div><br></div><div><div>else if (JBossSAMLConstants.SUBJECT.get().equals(elementName)) {</div><div>       authnRequest.setSubject(getSubject(xmlEventReader));</div><div>} </div></div><div><br></div><div>Regards,</div><div>Muein</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 9, 2016 at 3:20 PM, Muein Muzamil <span dir="ltr">&lt;<a href="mailto:shmuein+keycloak-dev@gmail.com" target="_blank">shmuein+keycloak-dev@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Hi all,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">We are trying to integrate with an SP which sends Subject/NameID in the Saml Request (copying example below).  I have couple of questions in this regard</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><ol><li style="margin-left:15px">In our custom authenticator, we want to access this NameId and want to pre-fill username field based on this. Can you please guide me how can I do that. </li><li style="margin-left:15px">Secondly, I am currently using KeyCloak JBoss Adapter for my sample SP, does the SAML Adapter supports sending nameId in SAML request? </li></ol></div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px"><div>&lt;samlp:AuthnRequest Destination=&quot;<a href="https://idp.com/idp/profile/SAML2/Redirect/SSO" target="_blank">https://idp.com/i<wbr>dp/profile/SAML2/Redirect/SSO</a>&quot; Version=&quot;2.0&quot; IssueInstant=&quot;2016-02-24T15:45<wbr>:55.325Z&quot; </div><div><span style="white-space:pre-wrap">        </span>ID=&quot;ID112bf5b0e4169930b663f2d8<wbr>9e62c521fc2f1b8133598fa2ff&quot; xmlns:samlp=&quot;urn:oasis:names:t<wbr>c:SAML:2.0:protocol&quot;&gt;</div><div><br></div><div><span style="white-space:pre-wrap">        </span>&lt;saml:Issuer xmlns:saml=&quot;urn:oasis:names:tc<wbr>:SAML:2.0:assertion&quot;&gt;<a href="http://pingone.com/xxx/640d3755-e080-4a87-8f7f-91795e78c08d" target="_blank">http://pi<wbr>ngone.com/xxx/640d3755-e080-4a<wbr>87-8f7f-91795e78c08d</a>&lt;/saml:Iss<wbr>uer&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;saml:Subject xmlns:saml=&quot;urn:oasis:names:tc<wbr>:SAML:2.0:assertion&quot;&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;saml:NameID Format=&quot;urn:oasis:names:tc:SAM<wbr>L:1.1:nameid-format:unspecifie<wbr>d&quot;&gt;<a href="mailto:jdoe@mysecureauthentication.com" target="_blank">jdoe@mysecureauthentication<wbr>.com</a>&lt;/saml:NameID&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;/saml:Subject&gt;</div><div>&lt;/samlp:AuthnRequest&gt; </div></blockquote><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Regards,</div><div style="font-size:12.8px">Muein</div></div>
</blockquote></div><br></div>