login via modal window

14 views
Skip to first unread message

Pablo Vidaurri

unread,
Feb 15, 2022, 9:55:46 PM2/15/22
to CAS Community
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 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

Carl Waldbieser

unread,
Feb 16, 2022, 11:11:34 AM2/16/22
to cas-...@apereo.org
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


--
- 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 cas-user+u...@apereo.org.
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.
Reply all
Reply to author
Forward
0 new messages