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'm developing and application that needs to connect to a CAS service in order to see if the user logged via another application. The problem I have is that this library seems that is not designed for API REST and, when the front makes an AJAX call, the server sends a redirect to the service, but redirects don't work in AJAX calls.
So is there a wall that the API can send the route to go in a JSON instead of doing a redirect?
So phpCAS::checkAuthentication()), instead of make a redirection, it could return an object with the Location URL in order to make the redirection from the front application.
The text was updated successfully, but these errors were encountered:
lazaro92
changed the title
Is there a way to use phpCAS within a Simfony API REST?
Is there a way to use phpCAS within a Symfony API REST?
May 19, 2022
CAS works based off authentication server reading its cookies from the browser and passing the ticket back to the resource server, and generally there is no way for you to REST call authentication server without a ticket. I am afraid you need to work around it browser side by iframing the CAS login page to get the ticket for example. If you would like to learn more about CAS protocol, I recommend https://apereo.github.io/cas/6.5.x/protocol/CAS-Protocol.html
Hi, I'm developing and application that needs to connect to a CAS service in order to see if the user logged via another application. The problem I have is that this library seems that is not designed for API REST and, when the front makes an AJAX call, the server sends a redirect to the service, but redirects don't work in AJAX calls.
So is there a wall that the API can send the route to go in a JSON instead of doing a redirect?
So
phpCAS::checkAuthentication())
, instead of make a redirection, it could return an object with the Location URL in order to make the redirection from the front application.The text was updated successfully, but these errors were encountered: