Answer the question
In order to leave comments, you need to log in
How to organize forwarding from cas server?
good afternoon. There is a front (angular), there is a back API for the front (spring boot). I want to implement my own CAS server. In my understanding, the user presses the login button, he checks for the presence of a JWT, if not, then throws out 403, the front redirects to the CAS service with the login and pass form, after the login a JWT is issued, but now how to redirect the user back to the service from which he came with an already existing JWT token for this service? Also, if my logic of understanding the mechanism is incorrect, then please point it out
Answer the question
In order to leave comments, you need to log in
When redirecting to cas, you need to pass parameters where to redirect the user back.
If we take this site as an example (qna.habr.com), then when trying to authorize, it redirects to
https://account.habr.com/login/?consumer=qna&ostate=bb9acafa489dc93106685c101891cfffb
https://cas.example.org/?return_to=https%3A%2F%2Fexample.com%2Farticles%3Fpage%3D8
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question