# A question about user\_auth\_tokens

**URL:** <https://meta.discourse.org/t/a-question-about-user-auth-tokens/59307>\
**Category:** Development\
**Created:** [16 Marzo, 2017 20:36 UTC](https://meta.discourse.org/t/a-question-about-user-auth-tokens/59307 "2017-03-16T20:36:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![eriko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eriko/32/1915_2.png) [@eriko](https://meta.discourse.org/u/eriko)\
**Post date:** [16 Marzo, 2017 20:55 UTC](https://meta.discourse.org/t/a-question-about-user-auth-tokens/59307/3 "2017-03-16T20:55:04Z")

</div>

> [@sam](#):
>
> There is no endpoint for logging out a particular token at the moment, only for logging out the entire user. I am totally open to add an admin route that allow an admin to delete an auth token, effectively giving you the ability to log off a single browser.

That may be what I I am looking for. The big question is does discourse token set as part of the SSO process. It has been 6 months since I had to look at that code.

Here is what I would be trying for:

- User logs in via SSO which in my case is an app (cas\_sso) that sits between CAS and Discourse.
- cas\_sso stashes the cas token used to allow cas logout\* and now caches the token from discourse
- cas logout get sent to cas\_sso when the cas session expires
- cas\_sso now has both the cas token and the discourse token that are linked and can use that information to log out that particular discourse session.

Currently I just drop the logout request on the floor.

(Cas logout is when your CAS session on the CAS server expires and the CAS server sends logout requests to every thing that logged in to that session.)

---

_[View the full topic](https://meta.discourse.org/t/a-question-about-user-auth-tokens/59307)._
