Hi,
I have the following problem:
I already have several web apps already integrated with CAS and spring-security-cas-filter. It works fine for user (browser based) connections.
I now need to provide some of those webapps' REST Endpoints for machine-to-machine connection
and I want to rely on CAS for Authentication of those REST calls.
So I want my REST-Clients to call the CAS-RESTful API (/cas/v1/tickets) to get authenticated ...
This works fine and they get the TGT as result...
But when the REST-Clients call the webapps REST endpoint they get redirected (by the cas-spring-sec-filter)
to the cas login page that does not recognize the client is already authenticated and sends the html page...
So how to configure CAS to set in the REST-Client the proper cookies after issuing the TGT so that next calls of such client will be recognized by CAS as authenticated and issue directly the service ticket for the required webapps?
Note: After the TGT Request the REST Clients don't call the CAS-REST API for ServiceTicket because I want a seamless integration (no special handling from REST-Clients: they get redirected if not Authenticated by the spring-sec-filter).
I'm currently using CAS 4.1.0 but plan to move to CAS 5.x
Thank you so much for your help.