Commit graph

2 commits

Author SHA1 Message Date
Johan Lundberg
58da15c825 Implement reverse-proxy forward-auth
Add a /forward-auth endpoint that validates the existing Porchlight
session for reverse proxies and returns identity headers for
authenticated active users. Unauthenticated or inactive sessions
redirect to login, with optional post-login return targets reconstructed
from proxy headers and constrained by an allowed host list.

Also add forward_auth_allowed_redirect_hosts configuration, preserve
validated forward-auth return targets through login/session reset,
exempt the endpoint from CSRF for proxy subrequests, document
configuration, and cover the flow with tests.
2026-07-04 23:29:26 +02:00
Johan Lundberg
aff22eb2f4
dev config 2026-06-29 09:23:33 +02:00