summary refs log tree commit diff
path: root/changelog.d/10175.bugfix
diff options
context:
space:
mode:
authorLukas Lihotzki <lukas@lihotzki.de>2021-06-16 14:16:35 +0200
committerGitHub <noreply@github.com>2021-06-16 13:16:35 +0100
commit2c240213f4c1d9d44d121441c3b9d4f893ed16cc (patch)
treee1b1cb86129fa6223c825bc93c4e14acd8ed8637 /changelog.d/10175.bugfix
parentFix broken links in documentation (#10180) (diff)
downloadsynapse-2c240213f4c1d9d44d121441c3b9d4f893ed16cc.tar.xz
Fix requestOpenIdToken response: integer expires_in (#10175)
`expires_in` must be an integer according to the OpenAPI spec:
https://github.com/matrix-org/matrix-doc/blob/master/data/api/client-server/definitions/openid_token.yaml#L32

True division (`/`) returns a float instead (`"expires_in": 3600.0`).
Floor division (`//`) returns an integer, so the response is spec compliant.

Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
Diffstat (limited to 'changelog.d/10175.bugfix')
-rw-r--r--changelog.d/10175.bugfix1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/10175.bugfix b/changelog.d/10175.bugfix
new file mode 100644
index 0000000000..42e8f749cc
--- /dev/null
+++ b/changelog.d/10175.bugfix
@@ -0,0 +1 @@
+Fix a minor bug in the response to `/_matrix/client/r0/user/{user}/openid/request_token`. Contributed by @lukaslihotzki.