Skip to content

Commit

Permalink
Change auth type to m.login.registration_token
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
govynnus committed Jun 7, 2021
1 parent 5ba0996 commit 46dcf00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions proposals/3231-token-authenticated-registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ and is integrated with existing clients.

The [/\_matrix/client/r0/register](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-register)
endpoint uses the [User-Interactive Authentication API](https://matrix.org/docs/spec/client_server/r0.6.1#user-interactive-authentication-api).
A new authentication type `m.registration.token` will be defined which requires
A new authentication type `m.login.registration-token` will be defined which requires
a `token` key to be present in the submitted `auth` dict. The token will be a
string which the homeserver can match against its records to authenticate the
registration request.
Expand All @@ -30,7 +30,7 @@ HTTP/1.1 401 Unauthorized
{
"flows": [
{
"stages": [ "m.registration.token" ]
"stages": [ "m.login.registration-token" ]
}
],
"params": {},
Expand All @@ -46,7 +46,7 @@ POST /_matrix/client/r0/register
{
"auth": {
"type": "m.registration.token",
"type": "m.login.registration-token",
"token": "fBVFdqVE",
"session": "xxxxx"
}
Expand Down Expand Up @@ -98,5 +98,5 @@ to do the registration.

## Unstable prefix

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

0 comments on commit 46dcf00

Please sign in to comment.