Pablo, You'd need to implement the parts of the CAS protocol ( https://apereo.github.io/cas/6.0.x/protocol/CAS-Protocol.html) that you actually intend to use. So probably you'd need some way of persisting the TGT to the browser. The CAS server also sets up a bunch of security headers, etc.
Trying to replicate the CAS server functionality from the REST API seems like a pretty big undertaking. The REST API is really meant to model "applications as users". >From my point of view this doesn't seem like the best way to use CAS. Thanks, Carl Waldbieser ITS Lafayette College On Tue, Feb 15, 2022 at 9:55 PM Pablo Vidaurri <[email protected]> wrote: > Hello, > > On our website we wish to present a modal window for login instead of > redirecting the user to cas/login which takes away from the user > experience. Our modal window is react based. > > I have come across this documentation > <https://apereo.github.io/cas/6.4.x/protocol/REST-Protocol.html> regarding > rest protocol. I guess we could make an ajax call to authenticate a user > and create a TGT, even create an ST if necessary. Is there anything else I > need to do like need to create a cookie on the browser side for the browser > to use for subsequent SSO checks. > > -psv > > -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/fc9ab2b8-dc66-4c59-a223-680361ea356dn%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/fc9ab2b8-dc66-4c59-a223-680361ea356dn%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CALt4NbPh8RmvV2WVNF5Eu_tUmHhX_NicxaM2F6bLdoQ_xsybhg%40mail.gmail.com.
