From 6879f96c90f5d531d6aa3aefdfe4b25a88fefe45 Mon Sep 17 00:00:00 2001 From: BramvdnHeuvel <43719024+BramvdnHeuvel@users.noreply.github.com> Date: Tue, 8 Nov 2022 20:24:37 +0100 Subject: [PATCH] Require refresh_token on refresh token endpoint (#1323) Signed-off-by: Bram van den Heuvel matrix-spec@noordstar.me --- changelogs/client_server/newsfragments/1323.clarification | 1 + data/api/client-server/refresh.yaml | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelogs/client_server/newsfragments/1323.clarification diff --git a/changelogs/client_server/newsfragments/1323.clarification b/changelogs/client_server/newsfragments/1323.clarification new file mode 100644 index 00000000..9155786d --- /dev/null +++ b/changelogs/client_server/newsfragments/1323.clarification @@ -0,0 +1 @@ +Require request field `refresh_token` at endpoint `POST /_matrix/client/v3/refresh`. \ No newline at end of file diff --git a/data/api/client-server/refresh.yaml b/data/api/client-server/refresh.yaml index da34070c..5923d3b7 100644 --- a/data/api/client-server/refresh.yaml +++ b/data/api/client-server/refresh.yaml @@ -61,6 +61,8 @@ paths: refresh_token: type: string description: The refresh token + required: + - refresh_token responses: 200: description: A new access token and refresh token were generated.