web:password-protected:authbyppy
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
web:password-protected:authbyppy [2017/12/20 19:02] – jas | web:password-protected:authbyppy [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Authentication By Passport York Usernames ====== | ||
- | |||
- | If you wish to authenticate users by Passport York usernames and passwords, then you must follow these steps: | ||
- | |||
- | In the directory you wish to protect, create an .htaccess file with the following contents: | ||
- | |||
- | AuthType PYork | ||
- | AuthName "Name of Web Area You Are Protecting" | ||
- | PYorkAppID "EECS App" | ||
- | |||
- | If you wish to restrict access to any Passport York user, add: | ||
- | |||
- | Require valid-user | ||
- | |||
- | If instead, you wish to restrict access to specific PPY accounts, add for each user: | ||
- | |||
- | Require user < | ||
- | |||
- | For simplicity, you can also add all users on one line: | ||
- | |||
- | Require user < | ||
- | |||
- | If you wish to allow anyone who has a PPY account - not just students and employees, then add: | ||
- | |||
- | 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. | ||
- | |||
- | * $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: | ||
- | |||
- | https:// | ||
- | |||
- | Check file permissions on your .htaccess file and directory permissions on all directories leading up to your .htaccess file. | ||
- | |||
- | At a minimum, your .htaccess file must be readable by the web server, which runs as user " | ||
- | |||
- | % chmod o+r .htaccess | ||
- | |||
- | CAUTION: This will enable other users on the system to also read your .htaccess file. 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 / | ||
- | |||
- | % chmod o+x / | ||
- | % chmod o+x / | ||
- | | ||
- | Always be careful when using your Passport York username and password for accessing web pages. | ||
web/password-protected/authbyppy.1513814551.txt.gz · Last modified: 2017/12/20 19:02 by jas