Skip to content

[FEATURE] Share backend login across domains#20

Closed
Kanti wants to merge 1 commit intomainfrom
feature/auto-login
Closed

[FEATURE] Share backend login across domains#20
Kanti wants to merge 1 commit intomainfrom
feature/auto-login

Conversation

@Kanti
Copy link
Copy Markdown
Contributor

@Kanti Kanti commented Mar 18, 2026

Introduce a session transfer token to propagate the active backend session to requests on other domains. The middleware restores the session cookie from the token and redirects the request with the correct backend session.

This improves the editor experience by avoiding additional logins during cross-domain editing.

related: #19, #12

TODOs:

  • add origin binding for SessionTransferToken (to only allow specific domains)
  • add clientIp binding
  • make SessionTransferToken single use
  • strip token for the redirect in PersistenceMiddleware::setSessionCookie
  • gracefully ignore expired handoff tokens instead of crashing
  • check if cross-origin works even with BE[cookieSameSite]=strict

@Kanti Kanti force-pushed the feature/auto-login branch from 20c55c0 to 9b9353d Compare March 19, 2026 09:37
Introduce a session transfer token to propagate the active backend
session to requests on other domains. The middleware restores the
session cookie from the token and redirects the request with the
correct backend session.

This improves the editor experience by avoiding additional logins
during cross-domain editing.
@Kanti
Copy link
Copy Markdown
Contributor Author

Kanti commented Mar 24, 2026

I think the best way forward with this problem is to eliminate all cross-origin Problems in one go.
For that I will proceed with #22

@Kanti Kanti closed this Mar 24, 2026
@Kanti Kanti deleted the feature/auto-login branch March 25, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant