[keycloak-user] Can not logout with RESTFul API

Bill Burke bburke at redhat.com
Sat Aug 29 09:49:51 EDT 2015


This is the API that the user uses from his browser.  The admin one is 
what an admin uses to perform a backchannel logout for the user.

On 8/28/2015 9:49 PM, Mai Zi wrote:
> We checked the demo code and found the following endpoint is used instead,
>
> auth/realms/{reaml}/protocol/openid-connect/logout
>
>
> What is the difference ?
>
> TiA
> Mzi
>
> ------------------------------------------------------------------------
> *From:* Shiva Saxena <shivasaxena999 at gmail.com>
> *To:* Bill Burke <bburke at redhat.com>
> *Cc:* keycloak-user <keycloak-user at lists.jboss.org>
> *Sent:* Friday, August 28, 2015 2:07 PM
> *Subject:* Re: [keycloak-user] Can not logout with RESTFul API
>
> HI Mai,
>
> The endpoint is auth/admin/realms/{realm}/users/{username}/logout please
> try it.
>
>
>
> On Thu, Aug 27, 2015 at 7:03 PM, Bill Burke <bburke at redhat.com
> <mailto:bburke at redhat.com>> wrote:
>
>     getPreferredUsername() is username
>     getSubject() is userId
>
>     On 8/25/2015 8:26 PM, Mai Zi wrote:
>      >
>      >
>      > Hi,
>      > We are using the version 1.1.0 final. According to the doc, to logout
>      > current  user, we call the method:
>      >
>      > /admin/realms/{realm}/users/{username}/logout
>      >
>     <http://docs.jboss.org/keycloak/docs/1.1.0.Final/rest-api/admin/realms/%7Brealm%7D/users/%7Busername%7D/logout/index.html>
>      >
>      > We got the name as  session.getIdToken.getName()
>      >
>      >
>      > but get an 404 error.
>      >
>      > We are not sure what we missed.
>      >
>      >
>      > Any help will be appreciated.
>      >
>      > Mai
>      >
>      >
>      >
>      >
>      > _______________________________________________
>      > keycloak-user mailing list
>      > keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
>      > https://lists.jboss.org/mailman/listinfo/keycloak-user
>      >
>
>     --
>     Bill Burke
>     JBoss, a division of Red Hat
>     http://bill.burkecentral.com <http://bill.burkecentral.com/>
>     _______________________________________________
>     keycloak-user mailing list
>     keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
>
> --
> Best Regards
> *Shiva Saxena*
> *Mobile : +91-9889787094 *
> *Blog <http://metalop.com/> | Linkedin
> <http://in.linkedin.com/in/shivasaxena/> | StackOverflow
> <http://stackoverflow.com/users/2490343/shiva>*
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-user mailing list