External authentication (single sign-on)
|Posted: Mon, 2003-10-06 20:34|
Apache's Basic and Group authentication sets the REMOTE_USER environment variable for the user's HTTPD session. Many other authentication methods follow suit. By adding a field to Gallery's user database and checking it at runtime, we can add auto-login capabilities to Gallery.
This involved changing the following files:
And adding these two (mostly copy-and-paste jobs):