mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-26 12:34:11 +02:00
Compare commits
No commits in common. "f5c1b24bd89e843049fadfa0441aeb3cd37590f9" and "a6fb075d92adef5faa6d89bba618f36f4f79a344" have entirely different histories.
f5c1b24bd8
...
a6fb075d92
|
|
@ -33,14 +33,13 @@ properties:
|
||||||
validation token, with identical request and response parameters and error
|
validation token, with identical request and response parameters and error
|
||||||
codes to the Identity Service API's
|
codes to the Identity Service API's
|
||||||
[`POST /_matrix/identity/v2/validate/email/submitToken`](/identity-service-api/#post_matrixidentityv2validateemailsubmittoken)
|
[`POST /_matrix/identity/v2/validate/email/submitToken`](/identity-service-api/#post_matrixidentityv2validateemailsubmittoken)
|
||||||
and [`POST /_matrix/identity/v2/validate/msisdn/submitToken`](/identity-service-api/#post_matrixidentityv2validatemsisdnsubmittoken)
|
endpoint (without the requirement for an access token). The homeserver
|
||||||
endpoints (without the requirement for an access token). The homeserver
|
|
||||||
must send this token to the user (if applicable), who should then be
|
must send this token to the user (if applicable), who should then be
|
||||||
prompted to provide it to the client.
|
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 [`GET /versions`](/client-server-api/#get_matrixclientversions)
|
||||||
response (ie: r0.5.0).
|
response (ie: r0.5.0).
|
||||||
example: "https://example.org/path/to/submitToken"
|
example: "https://example.org/path/to/submitToken"
|
||||||
required: ['sid']
|
required: ['sid']
|
||||||
|
|
|
||||||
|
|
@ -154,13 +154,14 @@ paths:
|
||||||
"success": true
|
"success": true
|
||||||
}
|
}
|
||||||
"400":
|
"400":
|
||||||
|
x-addedInMatrixVersion: "1.18"
|
||||||
description: |
|
description: |
|
||||||
An error occurred. Some possible errors are:
|
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
|
- `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
|
||||||
incorrect.
|
incorrect.
|
||||||
- {{% added-in v="1.18" %}} `M_INVALID_PARAM`: One of the supplied parameters is not valid.
|
- `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.
|
- `M_SESSION_EXPIRED`: The validation session in question has expired.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
|
|
||||||
|
|
@ -156,13 +156,14 @@ paths:
|
||||||
"success": true
|
"success": true
|
||||||
}
|
}
|
||||||
"400":
|
"400":
|
||||||
|
x-addedInMatrixVersion: "1.18"
|
||||||
description: |
|
description: |
|
||||||
An error occurred. Some possible errors are:
|
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
|
- `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
|
||||||
incorrect.
|
incorrect.
|
||||||
- {{% added-in v="1.18" %}} `M_INVALID_PARAM`: One of the supplied parameters is not valid.
|
- `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.
|
- `M_SESSION_EXPIRED`: The validation session in question has expired.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue