This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
We might not be correctly clearing OIDC cookies when handling an OIDC callback #12782
Open
Description
Looking at sentry, this one is really weird. It happens when
session == b""
, which might be a result of the cookie clearing done before. Testing it a bit, on Safari, it looks like the cookie clearing line 201 does not clear the cookie properly, and instead sets it to a blank value, hence the issue.
So, it's a legit exception, and probably a legit bug because we're not clearing the cookie properly.
Originally posted by @sandhose in #12723 (comment)
The lines in question:
synapse/synapse/handlers/oidc.py
Lines 193 to 205 in df3c432
And the sentry report: https://sentry.matrix.org/sentry/synapse-matrixorg/issues/219508/?query=is%3Aunresolved