Merge pull request #1809 from orhtej2/fix_sso_domain

[bookworm] Return auth cookie valid for whole main domain.
This commit is contained in:
Alexandre Aubin 2024-05-18 14:22:05 +02:00 committed by GitHub
commit dc5c43255b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,6 +232,7 @@ class Authenticator(BaseAuthenticator):
path="/",
# Doesn't this cause issues ? May cause issue if the portal is on different subdomain than the portal API ? Will surely cause issue for development similar to CORS ?
samesite="strict" if not is_dev else None,
domain=f".{request.get_header('host')}",
)
# Create the session file (expiration mechanism)