External authentication (single sign-on)

raydavis

Joined: 2003-10-06
Posts: 3
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:

create_user.php
init.php
modify_user.php
setup_userdb.php

And adding these two (mostly copy-and-paste jobs):

remote_user/Remote_User_User.php
remote_user/Remote_User_UserDB.php

AttachmentSize
Remote_User_User.php.txt930 bytes
 
timriker

Joined: 2004-06-07
Posts: 1
Posted: Mon, 2004-06-07 20:37

Has this been updated for current releases? Note that the patch file is NOT in unified format and so it does not apply cleanly to newer releases. :cry:

 
fotonut

Joined: 2009-02-21
Posts: 74
Posted: Thu, 2010-09-16 21:20

Moved to G2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-09-16 21:14