The built-in auth (lazysite-auth.pl) and external auth proxies use
the same mechanism: HTTP headers. The processor reads X-Remote-User
and X-Remote-Groups regardless of what sets them. Upgrading from
built-in to external requires no changes to pages or the processor.
X-Remote-User and X-Remote-Groups
headers to the backendlazysite.conf:auth_header_user: Remote-User
auth_header_groups: Remote-Groups
FallbackResource from lazysite-auth.pl back
to lazysite-processor.pl:FallbackResource /cgi-bin/lazysite-processor.pl
login.md with a redirect to your proxy's login pagecurl -H "X-Remote-User: alice" -H "X-Remote-Groups: admins" \
https://example.com/protected-page
After upgrading, these all work identically:
auth: required and auth: optional in front matterauth_groups: access restrictions[% authenticated %], [% auth_user %] and other TT variables403.md with context variableslogin.mdlazysite-auth.pl is no longer in the request pathlazysite-users.pl to the proxy's
admin interfaceui capability on the Groups
page) and must match the group names your proxy forwards in
X-Remote-Groups