You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.2 KiB
YAML
59 lines
2.2 KiB
YAML
6 years ago
|
# Copyright 2018 New Vector Ltd
|
||
|
#
|
||
|
# 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
|
||
|
example: {
|
||
|
"client_secret": "monkeys_are_GREAT",
|
||
|
"country": "GB",
|
||
|
"phone_number": "07700900001",
|
||
|
"send_attempt": 1
|
||
|
}
|
||
|
properties:
|
||
|
client_secret:
|
||
|
type: string
|
||
6 years ago
|
description: |
|
||
|
A unique string generated by the client, and used to identify the
|
||
|
validation attempt. It must be a string consisting of the characters
|
||
|
``[0-9a-zA-Z.=_-]``. Its length must not exceed 255 characters and it
|
||
|
must not be empty.
|
||
6 years ago
|
example: "monkeys_are_GREAT"
|
||
|
country:
|
||
|
type: string
|
||
|
description: |-
|
||
5 years ago
|
The two-letter uppercase ISO-3166-1 alpha-2 country code that the
|
||
|
number in ``phone_number`` should be parsed as if it were dialled from.
|
||
6 years ago
|
example: "GB"
|
||
|
phone_number:
|
||
|
type: string
|
||
|
description: The phone number to validate.
|
||
|
example: "07700900001"
|
||
|
send_attempt:
|
||
|
type: integer
|
||
|
description: |-
|
||
6 years ago
|
The server will only send an SMS if the ``send_attempt`` is a
|
||
|
number greater than the most recent one which it has seen,
|
||
|
scoped to that ``country`` + ``phone_number`` + ``client_secret``
|
||
6 years ago
|
triple. This is to avoid repeatedly sending the same SMS in
|
||
|
the case of request retries between the POSTing user and the
|
||
6 years ago
|
identity server. The client should increment this value if
|
||
6 years ago
|
they desire a new SMS (e.g. a reminder) to be sent.
|
||
|
example: 1
|
||
|
next_link:
|
||
|
type: string
|
||
|
description: |-
|
||
5 years ago
|
Optional. When the validation is completed, the identity server will
|
||
|
redirect the user to this URL. This option is ignored when submitting
|
||
|
3PID validation information through a POST request.
|
||
6 years ago
|
example: "https://example.org/congratulations.html"
|
||
5 years ago
|
required: ["client_secret", "country", "phone_number", "send_attempt"]
|