Skip to content

Commit 3d60e04

Browse files
authored
Merge pull request #2310 from matrix-org/travis/spec/2263-deprecate-id-server
Deprecate id_server and make it optional
2 parents 500db6f + 2e84465 commit 3d60e04

File tree

6 files changed

+29
-6
lines changed

6 files changed

+29
-6
lines changed

api/client-server/administrative_contact.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ paths:
343343
400:
344344
description: |-
345345
The third party identifier is already in use on the homeserver, or
346-
the request was invalid.
346+
the request was invalid. The error code ``M_SERVER_NOT_TRUSTED``
347+
can be returned if the server does not trust/support the identity server
348+
provided in the request.
347349
schema:
348350
$ref: "definitions/errors/error.yaml"
349351
examples:
@@ -391,7 +393,9 @@ paths:
391393
400:
392394
description: |-
393395
The third party identifier is already in use on the homeserver, or
394-
the request was invalid.
396+
the request was invalid. The error code ``M_SERVER_NOT_TRUSTED``
397+
can be returned if the server does not trust/support the identity server
398+
provided in the request.
395399
schema:
396400
$ref: "definitions/errors/error.yaml"
397401
examples:

api/client-server/definitions/request_email_validation.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ allOf:
2222
The hostname of the identity server to communicate with. May optionally
2323
include a port. This parameter is ignored when the homeserver handles
2424
3PID verification.
25+
26+
This parameter is deprected with a plan to be removed in a future specification
27+
version for ``/account/password`` and ``/register`` requests.
2528
example: "id.example.com"
2629
id_access_token:
2730
type: string
2831
description: |-
2932
An access token previously registered with the identity server. Servers
3033
can treat this as optional to distinguish between r0.5-compatible clients
3134
and this specification version.
32-
required: ["id_server", "id_access_token"]
35+
36+
Required if an ``id_server`` is supplied.

api/client-server/definitions/request_msisdn_validation.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ allOf:
2222
The hostname of the identity server to communicate with. May optionally
2323
include a port. This parameter is ignored when the homeserver handles
2424
3PID verification.
25+
26+
This parameter is deprected with a plan to be removed in a future specification
27+
version for ``/account/password`` and ``/register`` requests.
2528
example: "id.example.com"
2629
id_access_token:
2730
type: string
2831
description: |-
2932
An access token previously registered with the identity server. Servers
3033
can treat this as optional to distinguish between r0.5-compatible clients
3134
and this specification version.
32-
required: ["id_server", "id_access_token"]
35+
36+
Required if an ``id_server`` is supplied.

api/client-server/registration.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,9 @@ paths:
425425
400:
426426
description: |-
427427
The referenced third party identifier is not recognised by the
428-
homeserver, or the request was invalid
428+
homeserver, or the request was invalid. The error code ``M_SERVER_NOT_TRUSTED``
429+
can be returned if the server does not trust/support the identity server
430+
provided in the request.
429431
schema:
430432
$ref: "definitions/errors/error.yaml"
431433
examples:
@@ -485,7 +487,9 @@ paths:
485487
400:
486488
description: |-
487489
The referenced third party identifier is not recognised by the
488-
homeserver, or the request was invalid
490+
homeserver, or the request was invalid. The error code ``M_SERVER_NOT_TRUSTED``
491+
can be returned if the server does not trust/support the identity server
492+
provided in the request.
489493
schema:
490494
$ref: "definitions/errors/error.yaml"
491495
examples:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deprecate ``id_server`` and make it optional in several places.

specification/client_server_api.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,9 @@ To use this authentication type, clients should submit an auth dict as follows:
809809
"session": "<session ID>"
810810
}
811811
812+
Note that ``id_server`` (and therefore ``id_access_token``) is optional if the
813+
``/requestToken`` request did not include them.
814+
812815
Phone number/MSISDN-based (identity / homeserver)
813816
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
814817
:Type:
@@ -838,6 +841,9 @@ To use this authentication type, clients should submit an auth dict as follows:
838841
"session": "<session ID>"
839842
}
840843
844+
Note that ``id_server`` (and therefore ``id_access_token``) is optional if the
845+
``/requestToken`` request did not include them.
846+
841847
Dummy Auth
842848
<<<<<<<<<<
843849
:Type:

0 commit comments

Comments
 (0)