--
- Website: https://apereo.github.io/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 visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/1ccf3963-2db1-4036-86d6-ed8ec87f9e38n%40apereo.org.
Thanks!
So
the main thing is that I’m trying to use it for a specific application so I
created a service to target the specific application (assuming I have the
serviceID right).
When I do the non TGT logout via clicking the links on the application to the back-end, it works fine so my application knows how to handle the request.
I tried changing the timeout to 125, but that didn't seem to do anything. Also, when you mean cas/logout, do you mean the back end call?
I do see that when the timeout "occurs", it cant seem to find the server and client ips. Is that maybe a cause? When I log in, it has client and server IPs
2024-11-07 09:41:04 =============================================================
2024-11-07 09:41:04 WHEN: 2024-11-07T14:41:04.250032600
2024-11-07 09:41:04 WHO: omitted
2024-11-07 09:41:04 WHAT: omitted
2024-11-07 09:41:04 ACTION: LOGOUT_SUCCESS
2024-11-07 09:41:04 CLIENT_IP: unknown
2024-11-07 09:41:04 SERVER_IP: unknown
2024-11-07 09:41:04 =============================================================
Ben
On Nov 7, 2024, at 3:13 PM, Ray Bon <rb...@uvic.ca> wrote:
Ben,
TGT expiration policies are for life of cas session (how long does SSO last). see under per service tab https://apereo.github.io/cas/7.1.x/ticketing/Configuring-Ticket-Expiration-Policy-TGT.htmljava cas client defaults should be fine.
Cas does not manage application sessions (one cas can support multiple applications). Cas is only about authentication (and a few other related items). Set your application session to the length you want. Think about the user experience if someone was in the middle of a task and some other system logged them out.
Ray
Additionally, looking at the documentation, it sounds like SLO would be able to log out of the application session as well as its own session when TGT expires. This may be going in a loop, but why doesn't the service I posted work if SSO is configured? Is it maybe because my serviceId is wrong or my SLO configured wrong?
On Sunday, November 10, 2024 at 11:29:48 PM UTC-5 Ben Chang wrote:
So from my reading of tgts and the flow diagram you posted earlier, don’t tgts grant service tickets (with help of the session cookie) which are only valid during the maxtimetolive? If the tgt is no longer valid, wouldn’t the key change and therefore the session end since you can’t request resources anymore? I’m trying to understand the purpose of TGTs since I thought they essentially provided the keys to a session.
If I configure a service for single logout, shouldn’t it logout once the tgt expires since the cas server sends a logout message to all the applications?
Sorry for all the questions, I’m new to CAS and trying to grasp it. The documentation is appearing to not be as straightforward as expected.
ThanksBen
Sent from my iPhone
Ben,
You are misunderstanding the nature of sessions. Cas session, TGT, is completely separate from your application session. The end of one of these sessions has no effect on the other.If you want your application session to be limited to 2m or 2h, set that in your application.If you want the user to reauthenticate at the end of your application's session, your application should send renew=true parameter in the login request (see cas protocol link).
Those steps will simplify your cas configuration (i.e., just use all cas defaults).
Certificate errors are handled by the jvm; they fail silently.Do you have ST validation success messages in the cas audit log?
Ray
On Fri, 2024-11-08 at 07:28 -0800, Ben wrote:
(Not sure why the order of messages got mixed up).
There isnt any certification errors or anything and I am able to log in and log out via the application. I'm just trying to force a specific application to log out once the maxTimeToLive is met. From the per service tab you mentioned earlier, once the TGT expires, shouldn't the user be unable to change settings and unable access authenticated pages since the TGT is expired/removed? My logs show that it gets removed (via the logout_success log), but nothing happens on my applications ends.
That is the crux of what I'm trying to figure out. It seems like from our conversation, the logoutURL is the default and doesn't need to be in the service file so that if I copy the 'per service' example into my service file, itshould logout after the specified time, but isnt. From looking at that flow chart, would I instead need to set the Service Ticket instead to force a log out? I've tried all the expiration policies to essentially the same result.