Scott (or whoever else wants to comment),

 

Sorry for the rapid fire emails, but I am continuing to research on my
end even as I await responses.



I'm making progress, but I wanted to run what I'm thinking past you all
to see if it sounds reasonable.


Basically, I want to get an event any time a user logs into an
application/service (whether it is the first time they enter their
credentials or a subsequent automatic login via CAS). When I get the
event, I want to be able to determine the username of the user that just
logged in, the IP address they logged in from, and the name of the
service they logged into. I will then add a new record in my 'registry'
of active users.

 

When a user logs out of CAS or an individual application/service, I want
to get an event as well. The more I think about this part of the
problem, the more I think this processing may have to be integrated with
the individual applications rather than CAS because it may be possible
to log out of a single application without ever interacting with CAS.
And if applications/services have to be equipped for that possibility
anyway, then the same functionality should suffice in the event that CAS
(via single sign-out) logs the user out.

 

So I'm thinking that what I am really interested in is the TicketEvent,
specifically ticket events for issuance of a service ticket. There
should be one of these for each time a user logs into a new service,
right? And as far as I can tell, I can get username (via the
TicketGrantingTicketImpl) and service name (directly from the
ServiceTicketImpl). The only thing I can't find is the IP address, which
appears to be available only on the HttpRequestEvent. Is there a way to
get the IP address from the ticket event? Or if not, can you think of a
way to capture the IP with the HttpRequestEvent handler and still be
able to associate it with the subsequent TicketEvent?

 

Thanks in advance.


Bill Bailey

Senior Developer / DBA

Northland, A Church Distributed

 

 

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to