You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was looking in the example_custom_urls.php file to know how to made a patch for this issue XavRsl/Cas#37 in another project that uses phpCAS and I find out that the comments are a little confusing:
Hi,
I was looking in the
example_custom_urls.php
file to know how to made a patch for this issue XavRsl/Cas#37 in another project that uses phpCAS and I find out that the comments are a little confusing:In the line https://github.com/Jasig/phpCAS/blob/master/docs/examples/example_custom_urls.php#L39 it suggest that you should use
phpCAS::setServerProxyValidateURL
for any CAS 2.0 validation, butphpCAS::setServerProxyValidateURL
should be used for the proxy validate URL of any CAS version.In the line https://github.com/Jasig/phpCAS/blob/master/docs/examples/example_custom_urls.php#L41 it suggest that you should use
phpCAS::setServerServiceValidateURL
for any CAS 1.0 validation, butphpCAS::setServerServiceValidateURL
should be used for the validate URL of any CAS version.After looking more into the implementation I found a similar problem in https://github.com/Jasig/phpCAS/blob/master/source/CAS.php file in lines
https://github.com/Jasig/phpCAS/blob/master/source/CAS.php#L1315 and
https://github.com/Jasig/phpCAS/blob/master/source/CAS.php#L1337
For references look at the CAS protocol specifications https://apereo.github.io/cas/5.0.x/protocol/CAS-Protocol-Specification.html
and to the implementations in the https://github.com/Jasig/phpCAS/blob/master/source/CAS/Client.php file, of the methods getServerServiceValidateURL in line https://github.com/Jasig/phpCAS/blob/master/source/CAS/Client.php#L431 and getServerProxyValidateURL in line https://github.com/Jasig/phpCAS/blob/master/source/CAS/Client.php#L488
The text was updated successfully, but these errors were encountered: