Historical:CAS: Difference between revisions
No edit summary |
m C256zhao moved page CAS to Historical:CAS without leaving a redirect |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{Outdated|Starting from 2019, the IST is migrating from CAS to [[ADFS]].}} |
|||
IST provides a service called CAS that can be used to authenticate UW accounts. |
IST provides a service called CAS that can be used to authenticate UW accounts. |
||
Relevant docs from IST are http://ist.uwaterloo.ca/~mpatters/cas/user.html and https://strobe.uwaterloo.ca/~twiki/bin/view/ISTCSS/CASClientAuth |
Relevant docs from IST are http://ist.uwaterloo.ca/~mpatters/cas/user.html and https://strobe.uwaterloo.ca/~twiki/bin/view/ISTCSS/CASClientAuth |
||
| Line 23: | Line 25: | ||
Apache puts the $REMOTE_USER variable into your application's environment, so you can use that to |
Apache puts the $REMOTE_USER variable into your application's environment, so you can use that to |
||
get the username. For example, in PHP, use $ |
get the username. For example, in PHP, use $_SERVER['REMOTE_USER'], or os.environ['REMOTE_USER'] in a Python cgi. |
||
This lets you do whatever you want. |
|||
Latest revision as of 13:04, 5 April 2026
| ⚠️ | This page contains outdated information that may be inaccurate. Starting from 2019, the IST is migrating from CAS to ADFS. |
IST provides a service called CAS that can be used to authenticate UW accounts. Relevant docs from IST are http://ist.uwaterloo.ca/~mpatters/cas/user.html and https://strobe.uwaterloo.ca/~twiki/bin/view/ISTCSS/CASClientAuth
CSC also provides WebAuth for authenticating against CSC accounts instead of UW accounts.
Using CAS in the CSC webhost environment
We've got the CAS module installed on the CSC webserver.
You can use Authtype CAS in your .htaccess files For the simplest case, just require any UW password:
AuthType CAS require valid-user
If you put that in an .htaccess, anything in that folder will require a username to log in.
If you want to require a few specific users, try this:
Authtype CAS require user ctdalek dbelange mimcpher
CGI apps with CAS
Apache puts the $REMOTE_USER variable into your application's environment, so you can use that to get the username. For example, in PHP, use $_SERVER['REMOTE_USER'], or os.environ['REMOTE_USER'] in a Python cgi.