Simple test CAS client application
Find a file
2021-11-15 11:08:42 +01:00
logs Improve log file support 2021-03-31 12:45:52 +02:00
.gitignore Add .gitignore file 2020-12-03 16:11:13 +01:00
index.php Fix PHP syntax error in previous commit 2021-11-15 11:08:42 +01:00
README.md Add installation note and improve requirement details 2021-10-07 11:04:23 +02:00

Test CAS Client

This application acting as CAS Client.

Features :

  • Login/Logout on CAS server
  • Local logout
  • Show authenticated user's informations (login and attributes)
  • Show complete debug log of phpCAS library

Requirements

  • phpCAS library (from php-cas Debian package for instance)
  • CURL and Dom PHP modules (from php-curl and php-dom Debian packages for instance)
  • Apache PHP support (using mod_php or PHP Fpm, install libapache2-mod-php Debian packages for instance)
  • One file writable by Apache user for logging

Installation

  • Install the application and its requirements
apt install libapache2-mod-php php-cas php-curl php-dom git
mkdir -p /var/www/connexion/public_html
git clone https://gogs.zionetrix.net/bn8/test-cas-client.git /var/www/connexion/
ln -s /var/www/connexion/test-cas-client /var/www/connexion/public_html/test
chown www-data: /var/www/connexion/test-cas-client/logs
  • Configure access to the application, for instance, in an existing Apache VirtualHost definition by adding something like:
Alias /test /var/www/connexion/public_html/test
ProxyPass /test ! 
<Directory /var/www/connexion/public_html/test>
        Require all granted 
</Directory>