web:webprotect:authbyppy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
web:webprotect:authbyppy [2017/12/20 19:02] – external edit 127.0.0.1web:webprotect:authbyppy [2017/12/22 08:25] (current) jas
Line 1: Line 1:
-====== Authentication By Passport York Usernames ======+====== Authentication By Passport York Usernames and Passwords ======
  
 If you wish to authenticate users by Passport York usernames and passwords, then you must follow these steps: If you wish to authenticate users by Passport York usernames and passwords, then you must follow these steps:
Line 25: Line 25:
   PYorkAllowEveryone on   PYorkAllowEveryone on
  
-The Passport York module will provide different information to you depending on whether it's run from your home directory, or in the course web directory.  If used in your home directory, you can access the $HTTP_PYORK_USER variable which contains the username of the PPY user.  This is also available as $REMOTE_USER. If you enable Passport York account to a course directory,you will have access to additional variables including:  +If you're writing a CGI/PHP script, you can take advantage of the HTTP_PYORK_USER variable which contains the username of the PPY user.  This is also available as REMOTE_USER.
- +
-  * $HTTP_PYORK_CYIN = staff/student number +
-  * $HTTP_PYORK_FIRSTMAME = first name and initial  +
-  * $HTTP_PYORK_SURNAME = last name and initial +
-  * $HTTP_PYORK_EMAIL = York Email +
-  * $HTTP_PYORK_TYPE = type of account (eg. EMPLOYEE:STAFF) +
- +
-NOTE: Temporarily, in order to access these additional variables, you will need to enable "PYorkAllowEveryone on" above.  +
  
 You should include a link on your page that allows users to logout of Passport York: You should include a link on your page that allows users to logout of Passport York:
Line 45: Line 37:
   % chmod o+r .htaccess   % chmod o+r .htaccess
  
-CAUTION: This will enable other users on the system to also read your .htaccess file. file.+CAUTION: This will enable other users on the system to also read your .htaccess file.
  
 You will also need to ensure that all directories up to your .htaccess file are accessible by the web server. For example, if your .htaccess file is /eecs/home/example/www/.htaccess: You will also need to ensure that all directories up to your .htaccess file are accessible by the web server. For example, if your .htaccess file is /eecs/home/example/www/.htaccess:
web/webprotect/authbyppy.1513814551.txt.gz · Last modified: 2017/12/20 22:58 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki