-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Registration Token requirement can be bypassed by logging in with SSO #11067
Comments
I think the registration tokens are a fairly recent development, judging by the timelines on #10142 and matrix-org/matrix-spec-proposals#3231 . If I understand correctly @Morg-S9 , I think you want to:
From a brief read, it sounds like the auth type Perhaps someone in @matrix-org/spec-core-team can check my working? |
I think it should theoretically be able to stacked on top (due to the way that UI authentication works), but there might be some gotchas with doing that with SSO. E.g. I'm not sure if we do that for consent right now. |
The current implementation require users additionally provide a token when registering: synapse/docs/sample_config.yaml Lines 1217 to 1224 in 6045331
The issue here may be that using SSO is considered a login (you've already registered an account elsewhere), rather than a registration through user-interactive authentication stages (which |
Ah, yes that's likely why it doesn't work. SSO is a login, not registration. I think there's some bits in there to do consent and such though after making the account. |
It would be nice if you could configure this to be AND or OR'd with SSO, but that's evidently nontrivial. Right now it's OR and our documentation should make that more obvious to avoid footguns. |
If /login used UIA, you could add registration_tokens as an additional UIA stage. Sadly it does not use UIA and SSO is a different beast again. (relevant MSC: matrix-org/matrix-spec-proposals#2835) |
Description
Registration Token requirement (where you need a token given by an admin to sign up) can be bypassed by using a Third Party (OpenID) login service
I wish to have OpenID enabled on my private homeserver for the convenience of the people I give access to.
And I have registration tokens enabled since my Homeserver is private. (duh)
Steps to reproduce
Version information
If not matrix.org:
Version: 1.44.0
Install method: Docker-Compose
The text was updated successfully, but these errors were encountered: