This project ships with some development tools to help with automated testing and troubleshooting.
Automated testing setup
Running the project testbed locally is a very quick, two-step setup: 1. Edit base_url
in behat.yml
to reflect your local URL. 1. Run ./bin/grumphp run
to manually run the tests.
Testing SSO Locally
- Add the appropriate config settings for nginx or apache (see below).
- Visit <local_domain>/simplesaml and attempt to login as admin.
Nginx: (this specific example works for Laravel Valet) location /simplesaml { alias PATH_TO/vendor/simplesamlphp/simplesamlphp/www; location ~ \.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_pass unix:/Users/YOUR_USER/.valet/valet.sock; fastcgi_index index.php; include fastcgi_params; } }
Apache: (this specific example was lifted from the SimpleSAMLphp docs)
<VirtualHost *> ServerName example.dev DocumentRoot /PATH_TO/web
SetEnv SIMPLESAMLPHP_CONFIG_DIR /PATH_TO/vendor/simplesamlphp/simplesamlphp/config
Alias /simplesaml /PATH_TO/vendor/simplesamlphp/simplesamlphp/www
<Directory /PATH_TO/vendor/simplesamlphp/simplesamlphp/www>
<IfModule !mod_authz_core.c>
# For Apache 2.2:
Order allow,deny
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
# For Apache 2.4:
Require all granted
</IfModule>
</Directory>
</VirtualHost>