Last active
January 15, 2018 22:48
-
-
Save acdha/7994024 to your computer and use it in GitHub Desktop.
Trivial example of enabling mod_auth_cas on Apache on recent-ish Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libapache2-mod-auth-cas | |
sudo a2enmod auth_cas | |
# Install site config updates above | |
sudo service apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost …> | |
CASCookiePath /var/cache/apache2/mod_auth_cas/ | |
CASLoginURL https://CAS_AUTH_URL/auth | |
CASValidateURL https://CAS_AUTH_URL/serviceValidate | |
# If you use a wild-card SSL certificate, perhaps on your testing infrastructure: | |
CASAllowWildcardCert on | |
<Location /admin/> | |
AuthType CAS | |
require valid-user | |
</Location> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment