Define opaque identifier grammar (#1791)
Since we already have three of these, and I'm about to add a fourth, let's pull it out to a common definition. We could, of course, keep defining the grammar each time it's used, but defining it in an appendix helps us be consistent for future API design.
This commit is contained in:
parent
f4e7b2aa97
commit
073ce659df
5 changed files with 29 additions and 16 deletions
|
@ -943,11 +943,12 @@ or completely closed registration (where the homeserver administrators create
|
|||
and distribute accounts).
|
||||
|
||||
The token required for this authentication type is shared out of band from
|
||||
Matrix and is an opaque string with maximum length of 64 characters in the
|
||||
range `[A-Za-z0-9._~-]`. The server can keep any number of tokens for any
|
||||
length of time/validity. Such cases might be a token limited to 100 uses or
|
||||
for the next 2 hours - after the tokens expire, they can no longer be used
|
||||
to create accounts.
|
||||
Matrix and is an opaque string using the [Opaque Identifier
|
||||
Grammar](/appendices#opaque-identifiers), with maximum length of 64
|
||||
characters. The server can keep any number of tokens for any length of
|
||||
time/validity. Such cases might be a token limited to 100 uses or for the next
|
||||
2 hours - after the tokens expire, they can no longer be used to create
|
||||
accounts.
|
||||
|
||||
To use this authentication type, clients should submit an auth dict with just
|
||||
the type, token, and session:
|
||||
|
@ -1201,7 +1202,7 @@ is complete, the client will need to submit a `/login` request matching
|
|||
`m.login.token`.
|
||||
|
||||
{{< added-in v="1.7" >}} Already-authenticated clients can additionally generate
|
||||
a token for their user ID if supported by the homeserver using
|
||||
a token for their user ID if supported by the homeserver using
|
||||
[`POST /login/get_token`](/client-server-api/#post_matrixclientv1loginget_token).
|
||||
|
||||
{{% http-api spec="client-server" api="login" %}}
|
||||
|
|
|
@ -96,13 +96,8 @@ Matrix clients can send DTMF as specified by WebRTC. The WebRTC standard as of A
|
|||
in the RTP payload.
|
||||
|
||||
#### Grammar for VoIP IDs
|
||||
`call_id`s and `party_id` are explicitly defined to be between 1 and 255 characters long, consisting
|
||||
of the characters `[0-9a-zA-Z._~-]`.
|
||||
|
||||
(Note that this matches the grammar of 'opaque IDs' from
|
||||
[MSC1597](https://github.com/matrix-org/matrix-spec-proposals/blob/rav/proposals/id_grammar/proposals/1597-id-grammar.md#opaque-ids),
|
||||
and that of the `id` property of the
|
||||
[`m.login.sso` flow schema](#definition-mloginsso-flow-schema).)
|
||||
`call_id`s and `party_id` must follow the [Opaque Identifier Grammar](/appendices#opaque-identifiers).
|
||||
|
||||
#### Behaviour on Room Leave
|
||||
If the client sees the user it is in a call with leave the room, the client should treat this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue