Compare commits

..

1 commit

Author SHA1 Message Date
Kévin Commaille 24e861418c
Merge f95dcfb0e7 into c47fa4d093 2026-01-16 10:52:00 -05:00
5 changed files with 6 additions and 55 deletions

View file

@ -1,3 +0,0 @@
The optional `submit_url` response parameter of the `/requestToken` endpoints uses the same request
and response parameters and error codes as the Identity Service API's `POST /_matrix/identity/v2/validate/email/submitToken`,
as per [MSC4183](https://github.com/matrix-org/matrix-spec-proposals/pull/4183).

View file

@ -1,3 +0,0 @@
Clarify the error codes that can be returned with a 400 HTTP status code by the `POST /_matrix/identity/v2/validate/email/submitToken`
and `POST /_matrix/identity/v2/validate/msisdn/submitToken` endpoints, introducing the `M_TOKEN_INCORRECT`
error code, as per [MSC4183](https://github.com/matrix-org/matrix-spec-proposals/pull/4183).

View file

@ -24,23 +24,16 @@ properties:
submit_url: submit_url:
type: string type: string
format: uri format: uri
x-changedInMatrixVersion:
"1.18": |-
The URL has the same request and response parameters and error codes as
the Identity Service API's endpoint.
description: |- description: |-
An optional field containing a URL where the client must submit the An optional field containing a URL where the client must submit the
validation token, with identical request and response parameters and error validation token to, with identical parameters to the Identity Service
codes to the Identity Service API's API's `POST /validate/email/submitToken` endpoint (without the requirement
[`POST /validate/email/submitToken`](/identity-service-api/#post_matrixidentityv2validateemailsubmittoken) for an access token). The homeserver must send this token to the user (if
and [`POST /validate/msisdn/submitToken`](/identity-service-api/#post_matrixidentityv2validatemsisdnsubmittoken) applicable), who should then be prompted to provide it to the client.
endpoints (without the requirement for an access token). The homeserver
must send this token to the user (if applicable), who should then be
prompted to provide it to the client.
If this field is not present, the client can assume that verification If this field is not present, the client can assume that verification
will happen without the client's involvement provided the homeserver will happen without the client's involvement provided the homeserver
advertises a sufficiently recent version in the [`GET /versions`](/client-server-api/#get_matrixclientversions) advertises this specification version in the `/versions` response
response (ie: r0.5.0). (ie: r0.5.0).
example: "https://example.org/path/to/submitToken" example: "https://example.org/path/to/submitToken"
required: ['sid'] required: ['sid']

View file

@ -153,24 +153,6 @@ paths:
value: { value: {
"success": true "success": true
} }
"400":
description: |
An error occurred. Some possible errors are:
- {{% added-in v="1.18" %}} `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
incorrect.
- {{% added-in v="1.18" %}} `M_INVALID_PARAM`: One of the supplied parameters is not valid.
- {{% added-in v="1.18" %}} `M_SESSION_EXPIRED`: The validation session in question has expired.
content:
application/json:
schema:
$ref: ../client-server/definitions/errors/error.yaml
examples:
response:
value: {
"errcode": "M_TOKEN_INCORRECT",
"error": "The token is incorrect"
}
"403": "403":
description: | description: |
The user must do something in order to use this endpoint. One example The user must do something in order to use this endpoint. One example

View file

@ -155,24 +155,6 @@ paths:
value: { value: {
"success": true "success": true
} }
"400":
description: |
An error occurred. Some possible errors are:
- {{% added-in v="1.18" %}} `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
incorrect.
- {{% added-in v="1.18" %}} `M_INVALID_PARAM`: One of the supplied parameters is not valid.
- {{% added-in v="1.18" %}} `M_SESSION_EXPIRED`: The validation session in question has expired.
content:
application/json:
schema:
$ref: ../client-server/definitions/errors/error.yaml
examples:
response:
value: {
"errcode": "M_TOKEN_INCORRECT",
"error": "The token is incorrect"
}
"403": "403":
description: | description: |
The user must do something in order to use this endpoint. One example The user must do something in order to use this endpoint. One example