phpCAS is an authentication library that allows PHP applications to easily authenticate users via a Central Authentication Service (CAS) server.
Questions tagged [phpcas]
35 questions
2
votes
0 answers
phpCAS: checkAuthentication() redirection blocked by CORS
Good morning,
I'm working on a project with a FrontEnd (ReactJS) and a Backend API (PHP - Symfony), where the Frontend is doing a POST request to an API endpoint where, with phpCAS, we are trying to know if the connected User has previously…

Albert Lazaro de Lara
- 2,540
- 6
- 26
- 41
2
votes
0 answers
phpCAS service validation URL is missing host/context
I'm using phpCAS with SAML. When I open the login URL I'm redirected to the idp and can login as usual. Upon redirect [successful login] phpCAS tries to use an incomplete URL to validate. It is missing the host / context…

Kevin
- 311
- 1
- 2
- 8
2
votes
1 answer
phpCAS::isAuthenticated returning false after login in different service
I've configured the CAS login page so that it accepts the username and password as GET parameters and if these are provided, it submits the login form automatically. This looks as the CAS login page is not even touched during authentication from the…

Daniel Szalay
- 4,041
- 12
- 57
- 103
1
vote
0 answers
Error with Laravel and phpCAS cannot redirect on failed authentication.
I implemented phpCAS as a Service Provider in my app that is running Laravel 5.1. Every single page in my app needs to be authorized so I created a Helper function that authenticates with phpCAS on my main app.blade.php file. The Helper function…

Vikram
- 349
- 3
- 7
- 16
1
vote
1 answer
CAS Authentication failed phpCAS
I get error, after successful login in CAS.
CAS Authentication failed! You were not authenticated.You may submit your request again by clicking here. If the problem persists, you may contact the administrator of this site.
and the error in Log file…

Aguzti Fajrin
- 21
- 3
1
vote
1 answer
Impossible SSL CAS-certificates with phpCAS and examples. It only works without SSL server verification
I am doing a CAS integration with a project that I am doing with my university. The final integration should be made with symfony2, however first I need to make the example code working.
I finally get working the example_simple.php example with…

José Cabo
- 6,149
- 3
- 28
- 39
1
vote
1 answer
Is it possible to get attributes in a CAS response without phpCAS?
We are using CAS on several sites with phpCAS. It returns a response with the username and a number of attributes like email and display name.
So the following echoes out all of the attributes (Full name, email, etc...)

ItsGeorge
- 2,060
- 3
- 17
- 33
1
vote
1 answer
phpCAS single sign out or check authentication
I am using phpCAS (v 1.3.2) on my app. I wanted to do a periodic check against the CAS server to determine if the user has been logged out by other participating SSO apps. However, whenever I do a phpCAS::checkAuthentication() or …

turkongwalayr
- 33
- 1
- 7
1
vote
1 answer
CAS Authentication failed! while using ohocas client
I've setup the rubycas-server with mysql backend. But when i tried to login via a phpCAS client, it is redirected to rubycas-server url. but, after entering username & password - I got this error
CAS Authentication failed!
You were not…

user2644778
- 11
- 3
1
vote
1 answer
How do I kill a CAS session using a script?
We use a CAS and phpCAS to handle the actions between our PHP scripts and the CAS. For one of our more advanced web applications, CAS is only used for authentication, not for session management. During our logout script, we want to kill the CAS…

Michael Irigoyen
- 22,513
- 17
- 89
- 131
0
votes
0 answers
How to use PHPCas
I am sorry for my stupid question but how can I run example_simple.php on this https://github.com/apereo/phpCAS. I am using VSCode and use XAMPP as localhost. This is the structure
And this is the file I try to run on my localhost which is…

Luhman Musa
- 31
- 1
- 1
- 2
0
votes
1 answer
CAS logout and intercept POST request
I'm developping a webapp linked to a CAS server with phpCAS. Up to now everything was going well, I was able to access my app after the CAS authentication. I'm now supposed to implement a logout feature : when someone logs out of the CAS server, it…

Lucas1283
- 61
- 1
- 5
0
votes
2 answers
phpCAS::setDebug() is deprecated in favor of phpCAS::setLogger()
phpCAS::setDebug() is deprecated in favor of phpCAS::setLogger()
I got this error today, and I can't seem to find in what file phpCAS::setDebug() is used, anyone know how I can fix it?
I tried downgrade apereo/phpcas to 1.3.8 (composer require…

Aditya Pratama
- 657
- 1
- 8
- 21
0
votes
1 answer
PHPCas composer package and Codeigniter 3
I am trying to make a Codeigniter 3 application to authenticate to a CAS server.
I installed the phpcas package with composer but I cant find any details or examples on how to do this. I want the access to this application to be only from…

Christos Pras
- 35
- 7
0
votes
0 answers
Infinite loop redirection while connecting with phpCAS in cakephp 3
I am migrating my project from Cakephp 2 to Cakephp 3. So after i decide to migrate the phpCas authentication, there is an infinite redirection before the navigator decide to stop the process. After a lot of research, I found that the problem was…