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
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/
In the simplesamlphp-1.19.4/config/config.php file I have set the
'baseurlpath' => 'http://project.test/simplesaml/'
I have reboot the virtual machine and tried to visit the above url. I get error 404 not found.
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?
You are missing some details on how your web server is configured (Apache/Nginx) but here are a few things to try:
Try to browse to http://project.test/simplesamlphp-1.19.4/
Try to browse to http://project.test/projects/simplesamlphp-1.19.4/
/var/www/html
You can update the location that the Apache Server is looking for files by updating the
httpd.conf
file.