Hello,
I am working towards a functional REST login. Using the documentation and examples, I was able to put together a proof of concept in php, that logs in to CAS, retrieves an unencrypted TGT which can’t be validated. Since the TGTs are configured to be encrypted, I assumed I’d be getting an encrypted TGT back, so I could set a cookie that would facilitate SSO authentication.
When I log in to CAS via the CAS delivered login, my browser receives a cookie called TGC that is encrypted, I assume this is the encrypted TGT.
What am I missing? Guidance is greatly appreciated.
Thanks,
Erik Mallory
Server Analyst
Wichita State University
Hello,
I am working towards a functional REST login. Using the documentation and examples, I was able to put together a proof of concept in php, that logs in to CAS, retrieves an unencrypted TGT which can’t be validated.
Since the TGTs are configured to be encrypted, I assumed I’d be getting an encrypted TGT back, so I could set a cookie that would facilitate SSO authentication.
When I log in to CAS via the CAS delivered login, my browser receives a cookie called TGC that is encrypted, I assume this is the encrypted TGT.
What am I missing? Guidance is greatly appreciated.
Thanks for the quick response. I’m using cas version 5.1.1
Using my REST login,
I request a TGT using a POST with the username and password to the cas/v1/ticket endpoint
When I receive the TGT I request a Service Ticket using the same endpoint with the TGT concatenated to the end of the url
I then attempt to validate the ticket using the /p3/servicValidate?service=<service>&ticket=<ST>
Which returns : Ticket <string> not recognized
I know the life span of an ST is 10 seconds and it’s good for one validation. 10 seconds more than enough time to validate, and I don’t see how this ticket could be sent off for validation before I sent it to be validated.
I’d expect to be able to put what was received from the rest endpoints (the TGT) in a cookie and be authenticated. Obviously, I’m wrong.
Understand that I’m not building an app here. My institution has a desire to have a “spash” page with campus news useful links, etc, and a CAS login that when used, logs them into our portal.
I think CAS REST is functioning as designed as well, I’m just trying to use it.
Erik Mallory
Server Analyst
Wichita State University
--
- 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/310591097.4326952.1503584932377.JavaMail.zimbra%40unicon.net.
I’d expect to be able to put what was received from the rest endpoints (the TGT) in a cookie and be authenticated. Obviously, I’m wrong.
Much obliged sir, I’ll keep at it. Thanks for your time.
Erik Mallory
Server Analyst
Wichita State University
From: <cas-...@apereo.org> on behalf of Misagh Moayyed <mmoa...@unicon.net>
Reply-To: "cas-...@apereo.org" <cas-...@apereo.org>
Date: Thursday, August 24, 2017 at 11:40 AM
To: "cas-...@apereo.org" <cas-...@apereo.org>
Subject: Re: [cas-user] REST Endpoints and Unencrypted TGT
I’d expect to be able to put what was received from the rest endpoints (the TGT) in a cookie and be authenticated. Obviously, I’m wrong.
--
--Misagh
--
- 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/2135284935.4347486.1503592845208.JavaMail.zimbra%40unicon.net.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/08D52D3F-D5D2-4F2D-A13E-A185A0FF73C2%40wichita.edu.