Closed Cyazd closed 4 years ago
I may not be able to help much since I don't quite use the PGT part, but I am not sure why you use $cas_server_ca_cert_path = 'etc/cas/ssl/certificat_CAS.crt';
instead of something like $cas_server_ca_cert_path = 'C:/etc/cas/ssl/certificat_CAS.crt';
(looks like you are running on Windows).
I can see curl certificate errors in the debug log. @phy25 suggestions is correct. You have to set a certificate or disable any validation (not recommended for production). What you also need to do is make sure your CAS server trust the SSL certificate of your phpCAS application (usually an issue if you use self signed certificates or you have wrong setup) . A proxy ticket will only be transmitted over a trusted SSL channel ( part of the security model). If you do not have a proper SSL setup this will not work... You need to pay attention to a valid SSL setup and closely monitor the error logs of both server if you start playing with proxy mode... These are advanced uses cases...
Thanks to you two for your answers.
I stopped working locally and got a VPS. Seemed like indeed it was a certificate issue.
I can't remember clearly if I was using the right certificate back when I was working locally, but getting appropriate certificate from Let's Encrypt without changing the config.php nor the index.php worked on my VPS.
Anyway, thanks for your help !
Hi to everybody,
I'm at the moment struggling with CAS and phpCAS examples. My aim is to test/play with the proxy files.
I have two CAS server in Tomcat, a Jasig 3.5.2 and a Apereo 5.3.14 and I'm on windows 10.
I first tried the "example_service.php" file with the 3.5.2. CAS version. Everything was going well.
Then I tried "example_proxy_serviceWeb.php" and since then I'm in a maelstrom of issues.
But it still doesn't work...
So, please, please, please, help me ! Thanking you in advance.
example_service.php
config.php
application.yml
log for example_service.php