My application must access a RESTful web service running on another server. This web service uses CAS authentication, and when using it through a browser, it is redirected to CAS registration if the user has not yet been authenticated. There is no way to actually log in through CAS. My application also uses CAS so that users are authenticated
I would like to access it through JQuery / Ajax, but the server does not seem to be configured for JSONP, which, as I understand it, is necessary due to the cross-domain access problem.
Now I could make Ajax requests through my server, which leads to my question: without the CAS login method to call my server, how can I "tell" the web service that the user is authenticated?
So, I suppose, firstly, I want to understand what happens between the browser, CAS and the RESTful service, and how authorization is processed without any explicit transfer of credentials. Secondly, I want to see how / if I can replicate this when calling the service from my server - it will not be the same session as the request from the browser, therefore there will be no CAS authorization token, but I do not see how it receive or provide.
source share