bug: Continuwuity in OAuth2 exclusive mode causes POST /_matrix/client/v3/register to return the wrong error code #2586
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2586
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is the bug?
When user-interactive authentication is disabled, continuwuity returns
404 / M_UNRECOGNIZEDwhenPOST /_matrix/client/v3/registeris called. This is not a legal error code for that endpoint, and consequently OAuth-only homeservers will confuse Meowlnir (unexpected error), causing it to kick users on those servers when failsafe mode is enabled.This resulted in someone getting kicked out of continuwuity's rooms because we currently have failsafe mode enabled. The correct response here would be
403 / M_FORBIDDEN.Steps to reproduce
exclusiveoauth mode (or enable OIDC or whatever)POST /_matrix/client/v3/registerServer name and version
cybernetica.cc 26.9.4 (
dda4bdc)Additional context
frankly I think this is a spec oversight 🕴 but whatever
Fixed by #2589