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

Add missing error.soft_logout #1836

Closed
wants to merge 1 commit into from

Conversation

PaarthShah
Copy link
Contributor

@PaarthShah PaarthShah commented Jun 2, 2024

soft_logout is used by 401 responses by the refresh endpoint, but is not defined properly on the error.

Pull Request Checklist

Preview: https://pr1836--matrix-spec-previews.netlify.app

@PaarthShah PaarthShah force-pushed the error-soft-logout branch 2 times, most recently from 8246b3b to 6d1a4e8 Compare June 2, 2024 07:57
@PaarthShah PaarthShah marked this pull request as ready for review June 2, 2024 07:59
@PaarthShah PaarthShah requested a review from a team as a code owner June 2, 2024 07:59
@PaarthShah PaarthShah force-pushed the error-soft-logout branch from 6d1a4e8 to 8a87caf Compare June 2, 2024 08:01
Signed-off-by: Paarth Shah <mail@shahpaarth.com>
@PaarthShah PaarthShah force-pushed the error-soft-logout branch from 8a87caf to d0f3719 Compare June 2, 2024 08:03
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things:

  1. This change adds soft_logout every single error response in the spec, including the federation API (which obviously doesn't support soft-logout), 429 responses, 404 responses. In short, to lots of places it doesn't apply at all. I'd suggest defining a new type (unknown_token_error.yaml or something) which is only used in 401 responses.
  2. Please can you link to the section on soft logout (https://pr1836--matrix-spec-previews.netlify.app/client-server-api/#soft-logout).

@richvdh
Copy link
Member

richvdh commented Jul 30, 2024

Thanks for your contribution. I'm going to close this for now as the changes requested haven't been made. If you're interested in continuing to work on this please let us know and we can reopen the pull request. Thanks!

@richvdh richvdh closed this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants