mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-25 12:04:09 +02:00
Compare commits
3 commits
a6fb075d92
...
f5c1b24bd8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5c1b24bd8 | ||
|
|
4297109c11 | ||
|
|
611ba3b4f9 |
|
|
@ -33,13 +33,14 @@ 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)
|
||||||
endpoint (without the requirement for an access token). The homeserver
|
and [`POST /_matrix/identity/v2/validate/msisdn/submitToken`](/identity-service-api/#post_matrixidentityv2validatemsisdnsubmittoken)
|
||||||
|
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 this specification version in the [`GET /versions`](/client-server-api/#get_matrixclientversions)
|
advertises a sufficiently recent 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,14 +154,13 @@ 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:
|
||||||
|
|
||||||
- `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
|
- {{% added-in v="1.18" %}} `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
|
||||||
incorrect.
|
incorrect.
|
||||||
- `M_INVALID_PARAM`: One of the supplied parameters is not valid.
|
- {{% added-in v="1.18" %}} `M_INVALID_PARAM`: One of the supplied parameters is not valid.
|
||||||
- `M_SESSION_EXPIRED`: The validation session in question has expired.
|
- {{% added-in v="1.18" %}} `M_SESSION_EXPIRED`: The validation session in question has expired.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
|
|
||||||
|
|
@ -156,14 +156,13 @@ 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:
|
||||||
|
|
||||||
- `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
|
- {{% added-in v="1.18" %}} `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
|
||||||
incorrect.
|
incorrect.
|
||||||
- `M_INVALID_PARAM`: One of the supplied parameters is not valid.
|
- {{% added-in v="1.18" %}} `M_INVALID_PARAM`: One of the supplied parameters is not valid.
|
||||||
- `M_SESSION_EXPIRED`: The validation session in question has expired.
|
- {{% added-in v="1.18" %}} `M_SESSION_EXPIRED`: The validation session in question has expired.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue