Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAS ticket validation failed if made by file_get_contents() #39

Open
berardd opened this issue Jul 18, 2013 · 2 comments
Open

CAS ticket validation failed if made by file_get_contents() #39

berardd opened this issue Jul 18, 2013 · 2 comments

Comments

@berardd
Copy link

berardd commented Jul 18, 2013

Hi,

The validation of the CAS ticket works correctly if the module php-curl is installed.
If php-curl not installed, the system use file_get_contents() function, but this generate an exception and a 500 HTTP error code.

Exception text :
"file_get_contents(https://cas.XXXXXX.YY/serviceValidate?service=http%3A%2F%2F127.0.0.1%2Fapp_dev.php%2Fprofil%2Flogin_check&ticket=ST-ZZZZZZZZZZZZZZZZZZZZZZ): failed to open stream: operation failed"

The problem is due to the replacement of the "&" character in the URL by it's html entity version (&).

Best regards.
David.

@JavierGrinon
Copy link

I have same problem:

file_get_contents(https://cas01.XXXXX.es/YYY/login?service=http%3A%2F%2Flocalhost%2Fcompe%2Fweb%2Fapp_dev.php%2Fbackend&ticket=ST-1382952293rCEB1E660FA7E7ACDF3): failed to open stream: operation failed

Best regards,
Javi

@pibou
Copy link

pibou commented Jan 5, 2015

Same kind of problem even with php curl installed
our cas server does not like those "%3A%2F%2F" url that prevent it to apply a regular expression on the service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants