Merge branch 'master' into user_directory

This commit is contained in:
Michael Telatynski 2017-12-18 16:56:04 +00:00 committed by GitHub
commit 605510e965
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 5 deletions

View file

@ -96,7 +96,6 @@ paths:
application/json: { application/json: {
"user_id": "@cheeky_monkey:matrix.org", "user_id": "@cheeky_monkey:matrix.org",
"access_token": "abc123", "access_token": "abc123",
"home_server": "matrix.org",
"device_id": "GHTYAJCE" "device_id": "GHTYAJCE"
} }
schema: schema:
@ -112,7 +111,13 @@ paths:
This access token can then be used to authorize other requests. This access token can then be used to authorize other requests.
home_server: home_server:
type: string type: string
description: The hostname of the homeserver on which the account has been registered. description: |-
The server_name of the homeserver on which the account has
been registered.
**Deprecated**. Clients should extract the server_name from
``user_id`` (by splitting at the first colon) if they require
it. Note also that ``homeserver`` is not spelt this way.
device_id: device_id:
type: string type: string
description: |- description: |-

View file

@ -124,7 +124,6 @@ paths:
application/json: { application/json: {
"user_id": "@cheeky_monkey:matrix.org", "user_id": "@cheeky_monkey:matrix.org",
"access_token": "abc123", "access_token": "abc123",
"home_server": "matrix.org",
"device_id": "GHTYAJCE" "device_id": "GHTYAJCE"
} }
schema: schema:
@ -144,7 +143,13 @@ paths:
This access token can then be used to authorize other requests. This access token can then be used to authorize other requests.
home_server: home_server:
type: string type: string
description: The hostname of the homeserver on which the account has been registered. description: |-
The server_name of the homeserver on which the account has
been registered.
**Deprecated**. Clients should extract the server_name from
``user_id`` (by splitting at the first colon) if they require
it. Note also that ``homeserver`` is not spelt this way.
device_id: device_id:
type: string type: string
description: |- description: |-

View file

@ -8,6 +8,12 @@ Unreleased changes
- ``POST /user_directory/search`` - ``POST /user_directory/search``
(`#1096 <https://github.com/matrix-org/matrix-doc/pull/1096>`_). (`#1096 <https://github.com/matrix-org/matrix-doc/pull/1096>`_).
- Spec clarifications:
- Mark ``home_server`` return field for ``/login`` and ``/register``
endpoints as deprecated
(`#1097 <https://github.com/matrix-org/matrix-doc/pull/1097>`_).
r0.3.0 r0.3.0
====== ======

View file

@ -139,7 +139,7 @@ history includes events with a ``sender`` which does not conform. In order to
handle these rooms successfully, clients and servers MUST accept user IDs with handle these rooms successfully, clients and servers MUST accept user IDs with
localparts from the expanded character set:: localparts from the expanded character set::
extended_user_id_char = %x21-7E extended_user_id_char = %x21-39 / %x3B-7F ; all ascii printing chars except :
Mapping from other character sets Mapping from other character sets
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<