Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distinction between deleting devices and invalidating access tokens is bogus and confusing #1950

Open
dkasak opened this issue Sep 13, 2024 · 0 comments
Labels
improvement An idea/future MSC for the spec

Comments

@dkasak
Copy link
Member

dkasak commented Sep 13, 2024

Suggestion

The difference between "deleting a device" (via https://spec.matrix.org/v1.11/client-server-api/#post_matrixclientv3delete_devices) and "logging out an access token" (via e.g. https://spec.matrix.org/v1.11/client-server-api/#post_matrixclientv3logout) is not terribly clear. After some discussion in #matrix-spec, it appears there is no difference, since:

  • /logout* invalidates the access token but also deletes the associated device
  • /delete_devices deletes the devices but also invalidates their access tokens

So essentially the same operation is approached from two different angles: one from the perspective of deleting a device (and invalidating all of its access tokens) and the other from the perspective of invalidating an access token (and deleting its device and other access tokens).

This makes /delete_devices a weird odd beast. It would make more sense to have a /logout/some instead.

@dkasak dkasak added the improvement An idea/future MSC for the spec label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An idea/future MSC for the spec
Projects
None yet
Development

No branches or pull requests

1 participant