<div dir="ltr"><div>Just to add to my previous email, I looked into the code and came across SAMlService::loginRequest method where we are setting different SAML parameters into client session. So we can imagine setting NameID also in the session notes at that point. If this change makes sense then do let me know and I can modify the code and can generate the pull request. Or if you would like to do this yourself, even then this is fine with me :). </div><div><br></div><div><div><div>Regards,<br></div><div>Muein</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 21, 2016 at 7:22 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"><div>Hi all,</div><div><br></div><div>This is a feature we need for some SP integrations, so if we don&#39;t support this feature that is ok. We can probably implement this and generate a pull request for this. But can someone please share some feedback how this should be implemented.<br></div><div><br></div><div>Thanks in advance for your feedback on this.</div><div><br></div><div>Regards,</div><div>Muein</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 15, 2016 at 10:05 AM, Muein Muzamil <span dir="ltr">&lt;<a href="mailto:shmuein+keycloak-dev@gmail.com" target="_blank">shmuein+keycloak-dev@gmail.<wbr>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">Hi all,<div><br></div><div>Not sure if my question was clear enough, feel free to ask for clarifications if needed. </div><div><br></div><div>I will really appreciate some response on this.  </div><div><br></div><div>Best regards,</div><div>Muein</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 13, 2016 at 10:29 AM, Muein Muzamil <span dir="ltr">&lt;<a href="mailto:shmuein+keycloak-dev@gmail.com" target="_blank">shmuein+keycloak-dev@gmail.co<wbr>m</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">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 (<a href="http://JBossSAMLConstants.SUBJECT.ge" target="_blank">JBossSAMLConstants.SUBJECT.ge</a><wbr>t().equals(elementName)) {</div><div>       authnRequest.setSubject(getSu<wbr>bject(xmlEventReader));</div><div>} </div></div><div><br></div><div>Regards,</div><div>Muein</div></div><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.co<wbr>m</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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>