Commit graph

5 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
cedf2a65e2
fix: add session_https_only to dev config and update README 2026-02-19 15:10:37 +01:00
Johan Lundberg
8c91edf137
docs: add example config file and update README 2026-02-18 12:54:43 +01:00
Johan Lundberg
dee1b1e3bc
docs: update README with CLI commands and fix stale module name 2026-02-18 11:43:56 +01:00
Johan Lundberg
ec1c42b1d5
docs: add README with production and development setup instructions 2026-02-16 15:02:44 +01:00