From 4937b50b9bbe567dade624db2a60f04e5b7f39ec Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 12 Aug 2022 14:39:29 +0100 Subject: [PATCH 1/2] Require access_token, device_id and user_id fields in /login response --- data/api/client-server/login.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/data/api/client-server/login.yaml b/data/api/client-server/login.yaml index d279445d8..4c348fcd9 100644 --- a/data/api/client-server/login.yaml +++ b/data/api/client-server/login.yaml @@ -210,6 +210,7 @@ paths: form as the one returned from .well-known autodiscovery. allOf: - "$ref": "definitions/wellknown/full.yaml" + required: ["access_token", "device_id", "user_id"] 400: description: |- Part of the request was invalid. For example, the login type may not be recognised. From 60708569c459678c58817eb0fc4469d9be6310b3 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 12 Aug 2022 14:51:11 +0100 Subject: [PATCH 2/2] changelog --- changelogs/client_server/newsfragments/1210.clarification | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelogs/client_server/newsfragments/1210.clarification diff --git a/changelogs/client_server/newsfragments/1210.clarification b/changelogs/client_server/newsfragments/1210.clarification new file mode 100644 index 000000000..6a0248525 --- /dev/null +++ b/changelogs/client_server/newsfragments/1210.clarification @@ -0,0 +1 @@ +Clarify that the "device_id", "user_id" and "access_token" fields are required in the response body of `POST /_matrix/client/v3/login`. \ No newline at end of file