web:webprotect:authbyppy
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
web:webprotect:authbyppy [2017/12/20 19:02] – external edit 127.0.0.1 | web:webprotect:authbyppy [2017/12/22 08:25] (current) – jas | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Authentication By Passport York Usernames ====== | + | ====== Authentication By Passport York Usernames |
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 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/ | + | |
- | * $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: | + | |
- | + | ||
- | NOTE: Temporarily, | + | |
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 | + | 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 / | 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 / |
web/webprotect/authbyppy.1513814551.txt.gz · Last modified: 2017/12/20 22:58 (external edit)