🚀 Feature: Support SameSite cookie attribute #287

Closed
opened 2025-10-08 00:01:45 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @adrianmace on GitHub.

Feature description

I want the ability for the session cookie to be set to SameSite: Lax so that I can authenticate to multiple sub-domains with a single request.

Pitch

In my use-case, I run multiple services behind a single sub-domain (*.something.example.com) and reverse proxy (Traefik). The result is app-1.something.example.com and app-2.something.example.com.

Currently Traefik intercepts all requests and authenticates them via Pocket-ID before processing the request further. This works, but authentication is happening once for each app/sub-domain I hit.

I want to authenticate once and have that persist for every app under the same sub-domain. This could be the default behaviour or an optional thing.

In Authentik SameSite: Lax is default behaviour, along with a 1 month cookie expiry time.

Originally created by @adrianmace on GitHub. ### Feature description I want the ability for the session cookie to be set to SameSite: Lax so that I can authenticate to multiple sub-domains with a single request. ### Pitch In my use-case, I run multiple services behind a single sub-domain (`*.something.example.com`) and reverse proxy (Traefik). The result is `app-1.something.example.com` and `app-2.something.example.com`. Currently Traefik intercepts all requests and authenticates them via Pocket-ID before processing the request further. This works, but authentication is happening once for each app/sub-domain I hit. I want to authenticate once and have that persist for every app under the same sub-domain. This could be the default behaviour or an optional thing. In Authentik SameSite: Lax **is default behaviour**, along with a 1 month cookie expiry time.
OVERLORD added the feature label 2025-10-08 00:01:45 +03:00
Author
Owner

@adrianmace commented on GitHub:

This relates to #219

@adrianmace commented on GitHub: This relates to #219
Author
Owner

@adrianmace commented on GitHub:

This is being set on my OIDC plugin for Traefik. Closing.

@adrianmace commented on GitHub: This is being set on my OIDC plugin for Traefik. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-1#287