phpvagranthomesteadsimplesamlphp

Installing SimpleSamlPHP 1.19.4 in Virtual Machine


This is my first time setting up SSO and any help would be appreciated. For the testing stage, I am running a local Homestead/Vagrant setup with Nginx. Example site mapped project.test.

I have used the installation for simplesamlphp

  1. I have downloaded latest version of simplesamlphp which is 1.19.4. I have unzipped the folder and saved it in path /home/vagrant/code/project/simplesamlphp-1.19.4/

  2. In the simplesamlphp-1.19.4/config/config.php file I have set the

'baseurlpath' => 'http://project.test/simplesaml/'

  1. I have reboot the virtual machine and tried to visit the above url. I get error 404 not found.

  2. Next step would be to add configuration as SP. I followed the instructions given by this url and added code in file simplesamlphp-1.19.4/metadata/saml20-idp-remote.php. The code I added is:

    $metadata['http://project.test'] = [ 'SingleSignOnService' => 'http://project.test/simplesaml/saml2/idp/SSOService.php', 'SingleLogoutService' => 'http://project.test/simplesaml/saml2/idp/SingleLogoutService.php', // 'certificate' => 'example.pem', ];

How can I now test the communication? Do I omit any other steps?


Solution

  • You are missing some details on how your web server is configured (Apache/Nginx) but here are a few things to try:

    1. You mentioned you've added the code to ".../simplesamlphp-1.19.4"

    Try to browse to http://project.test/simplesamlphp-1.19.4/

    Try to browse to http://project.test/projects/simplesamlphp-1.19.4/

    1. Ensure your Apache/Nginx config is pointed to the correct location. By default the Apache Server will point to /var/www/html

    You can update the location that the Apache Server is looking for files by updating the httpd.conf file.

    Read more here