Skip to content

Commit 46dcf00

Browse files
committed
Change auth type to m.login.registration_token
This is consistent with the other UIAA auth types, and does not suggest that other `m.login.*` types cannot be used for registration. Signed-off-by: Callum Brown <callum@calcuode.com>
1 parent 5ba0996 commit 46dcf00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

proposals/3231-token-authenticated-registration.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ and is integrated with existing clients.
1616

1717
The [/\_matrix/client/r0/register](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-register)
1818
endpoint uses the [User-Interactive Authentication API](https://matrix.org/docs/spec/client_server/r0.6.1#user-interactive-authentication-api).
19-
A new authentication type `m.registration.token` will be defined which requires
19+
A new authentication type `m.login.registration-token` will be defined which requires
2020
a `token` key to be present in the submitted `auth` dict. The token will be a
2121
string which the homeserver can match against its records to authenticate the
2222
registration request.
@@ -30,7 +30,7 @@ HTTP/1.1 401 Unauthorized
3030
{
3131
"flows": [
3232
{
33-
"stages": [ "m.registration.token" ]
33+
"stages": [ "m.login.registration-token" ]
3434
}
3535
],
3636
"params": {},
@@ -46,7 +46,7 @@ POST /_matrix/client/r0/register
4646
4747
{
4848
"auth": {
49-
"type": "m.registration.token",
49+
"type": "m.login.registration-token",
5050
"token": "fBVFdqVE",
5151
"session": "xxxxx"
5252
}
@@ -98,5 +98,5 @@ to do the registration.
9898

9999
## Unstable prefix
100100

101-
Implementations should use `org.matrix.msc3231.registration.token` as the
101+
Implementations should use `org.matrix.msc3231.login.registration-token` as the
102102
authentication type until this MSC has passed FCP and been merged.

0 commit comments

Comments
 (0)