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