mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-17 04:43:44 +01:00
Some checks are pending
Spec / 🔎 Validate OpenAPI specifications (push) Waiting to run
Spec / 🔎 Check Event schema examples (push) Waiting to run
Spec / 🔎 Check OpenAPI definitions examples (push) Waiting to run
Spec / 🔎 Check JSON Schemas inline examples (push) Waiting to run
Spec / ⚙️ Calculate baseURL for later jobs (push) Waiting to run
Spec / 🐍 Build OpenAPI definitions (push) Blocked by required conditions
Spec / 📢 Run towncrier for changelog (push) Waiting to run
Spec / 📖 Build the spec (push) Blocked by required conditions
Spec / 🔎 Validate generated HTML (push) Blocked by required conditions
Spec / 📖 Build the historical backup spec (push) Blocked by required conditions
Spec / Create release (push) Blocked by required conditions
Spell Check / Spell Check with Typos (push) Waiting to run
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
47 lines
2.1 KiB
YAML
47 lines
2.1 KiB
YAML
# Copyright 2019 The Matrix.org Foundation C.I.C.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
type: object
|
|
title: RequestTokenResponse
|
|
properties:
|
|
sid:
|
|
type: string
|
|
description: |-
|
|
The session ID. Session IDs are opaque strings that must consist entirely
|
|
of the characters `[0-9a-zA-Z.=_-]`. Their length must not exceed 255
|
|
characters and they must not be empty.
|
|
example: "123abc"
|
|
submit_url:
|
|
type: string
|
|
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: |-
|
|
An optional field containing a URL where the client must submit the
|
|
validation token, with identical request and response parameters and error
|
|
codes to the Identity Service API's
|
|
[`POST /validate/email/submitToken`](/identity-service-api/#post_matrixidentityv2validateemailsubmittoken)
|
|
and [`POST /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
|
|
prompted to provide it to the client.
|
|
|
|
If this field is not present, the client can assume that verification
|
|
will happen without the client's involvement provided the homeserver
|
|
advertises a sufficiently recent version in the [`GET /versions`](/client-server-api/#get_matrixclientversions)
|
|
response (ie: r0.5.0).
|
|
example: "https://example.org/path/to/submitToken"
|
|
required: ['sid']
|