<div dir="ltr"><div>Thanks Stain.</div><div><br></div>Then what is the purpose of the Admin URL when setting up the bearer-only application in the console?  Perhaps it should be removed?<div><br></div><div>Or is there some way that the bearer-only application could still maintain a &quot;has-logged-out&quot; list (which is would find out about via the admin-url against which to validate a token?  Perhaps using timestamps, which presumably is how the token lifespan stuff is checked too?</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 5:23 AM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:stian@redhat.com" target="_blank">stian@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">Bearer-only applications doesn&#39;t manage user sessions, they simply authenticate based on the token in the request.<br>
<br>
When a user logs out, the applications where a user has directly logged in to (confidential or public) should drop the user session. Confidential apps do this with the request from the server which will in turn invalidate the session in the app. Public apps (using keycloak.js) does this by detecting the logout from the session iframe.<br>
<br>
You should obviously also have a short &quot;Access Token Lifespan&quot; configured for your realm, this makes sure that any tokens are quickly expired after a logout. As the user session is invalidated on the server, any associated refresh tokens will be expired as well, so it won&#39;t be possible for an app to retrieve a new token after the user has logged out.<br>
<div><div class="h5"><br>
----- Original Message -----<br>
&gt; From: &quot;Alarik Myrin&quot; &lt;<a href="mailto:alarik@zwift.com">alarik@zwift.com</a>&gt;<br>
&gt; To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; Sent: Thursday, 11 September, 2014 8:52:50 PM<br>
&gt; Subject: [keycloak-user] Admin url for bearer-only applications<br>
&gt;<br>
&gt; I am not sure the Admin url is working for bearer-only applications, at least<br>
&gt; not on Wildfly.<br>
&gt;<br>
&gt; I have set the admin url for my bearer-only applications just like I do for<br>
&gt; my confidential applications. In both cases (they are both war file<br>
&gt; deployments running in Wildfly 8.0.0 Final) it is the context-root of the<br>
&gt; war file. When I log out the sessions from the keycloak admin console, the<br>
&gt; confidential applications hear about the logout, and will respond with a<br>
&gt; redirect, but the bearer-only reply with the protected resource instead of<br>
&gt; responding with a 401 like I would expect.<br>
&gt;<br>
&gt; Is anyone else having trouble with this? There are no bearer-only resources<br>
&gt; in the preconfigured-demo realm file to check against...<br>
&gt;<br>
&gt; BTW, I just verified that this was happening with Keycloak 1.0-final.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Alarik<br>
&gt;<br>
&gt;<br>
</div></div>&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" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div><br></div>