A question about user_auth_tokens

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.)