This patch adds support for REMOTE_USER authentication, which relies on webserver/reverse proxy-induced authentication. New users are asked to provide full name and email address. /login/ and /user/remote/new/ need to be protected by webserver. Anonymous access is still possible, open sessions are tracked by token similar to local login auth. Set PAGURE_AUTH = 'remoteuser' in pagure.cfg to enable.
Example for a simple file-based Apache httpd config (only what's relevant for auth):
This patch adds support for REMOTE_USER authentication, which relies on webserver/reverse proxy-induced authentication. New users are asked to provide full name and email address. /login/ and /user/remote/new/ need to be protected by webserver. Anonymous access is still possible, open sessions are tracked by token similar to local login auth. Set
PAGURE_AUTH = 'remoteuser'in pagure.cfg to enable.Example for a simple file-based Apache httpd config (only what's relevant for auth):
This should also work with other mod_auth modules like Kerberos/SAML/OIDC and with any WSGI-compatible webserver or reverse proxy.