<div dir="ltr"><span style="font-size:12.8000001907349px">HI Mai,<br></span><br>The endpoint is auth<span style="font-size:12.8000001907349px">/admin/realms/{realm}/users/{</span><span style="font-size:12.8000001907349px">username}/logout please try it.</span><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 27, 2015 at 7:03 PM, Bill Burke <span dir="ltr">&lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">getPreferredUsername() is username<br>
getSubject() is userId<br>
<br>
On 8/25/2015 8:26 PM, Mai Zi wrote:<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt; We are using the version 1.1.0 final. According to the doc, to logout<br>
&gt; current  user, we call the method:<br>
&gt;<br>
&gt; /admin/realms/{realm}/users/{username}/logout<br>
&gt; &lt;<a href="http://docs.jboss.org/keycloak/docs/1.1.0.Final/rest-api/admin/realms/%7Brealm%7D/users/%7Busername%7D/logout/index.html" rel="noreferrer" target="_blank">http://docs.jboss.org/keycloak/docs/1.1.0.Final/rest-api/admin/realms/%7Brealm%7D/users/%7Busername%7D/logout/index.html</a>&gt;<br>
&gt;<br>
&gt; We got the name as  session.getIdToken.getName()<br>
&gt;<br>
&gt;<br>
&gt; but get an 404 error.<br>
&gt;<br>
&gt; We are not sure what we missed.<br>
&gt;<br>
&gt;<br>
&gt; Any help will be appreciated.<br>
&gt;<br>
&gt; Mai<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; keycloak-user mailing list<br>
&gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Bill Burke<br>
JBoss, a division of Red Hat<br>
<a href="http://bill.burkecentral.com" rel="noreferrer" target="_blank">http://bill.burkecentral.com</a><br>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</font></span></blockquote></div><br><br clear="all"><div><span style="font-size:15px;line-height:21.2999992370605px;font-family:Calibri,sans-serif;color:rgb(0,0,0)">--</span><br></div><div class="gmail_signature"><div dir="ltr"><font face="Calibri,sans-serif" color="#000000" style="font-family:Calibri,sans-serif"><div style="line-height:21.2999992370605px"><font size="2">Best Regards</font></div></font><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-family:Calibri,sans-serif"><font color="#2672ec" style="line-height:normal"><span style="line-height:21px"><font style="line-height:normal"><b style="line-height:22.7199993133545px"><font face="Calibri" style="line-height:normal" size="2">Shiva Saxena</font></b></font></span><font face="Calibri"><br style="line-height:21px"><span style="line-height:21px"><font style="line-height:normal" size="2"><b style="line-height:18.4599990844727px">Mobile : +91-9889787094                            </b></font></span></font></font><div style="line-height:21px"><font style="line-height:normal" size="2"><b style="line-height:18.4599990844727px"><font face="Calibri" color="#2672ec" style="line-height:normal"><a href="http://metalop.com/" style="line-height:18.4599990844727px;font-weight:inherit;color:blue" target="_blank">Blog</a></font><font color="#444444" style="line-height:normal"> | <a href="http://in.linkedin.com/in/shivasaxena/" style="line-height:18.4599990844727px;font-weight:inherit;color:blue" target="_blank">Linkedin</a> | <a href="http://stackoverflow.com/users/2490343/shiva" style="line-height:18.4599990844727px;font-weight:inherit;color:blue" target="_blank">StackOverflow</a></font></b></font></div></div></div></div>
</div></div>