Hi,
I implemented a webservice that calls the CentralAuthenticationServiceImpl from CAS. The webservice is defined as a bean in the application context. In the webservice I have a service url and a service ticket generated for that url. I am trying to get the ticket object from ticket registry injected by spring using the service ticket id (ST-###), but I am getting null. Is there any way to get the ticket object from a service ticket id? I need this in order to get the ticket granting ticket from the ticket service object. Thanks, Edwin Guilbert Sánchez Consultor e-Business [email protected] -----Mensaje original----- De: Marvin Addison [mailto:[email protected]] Enviado el: martes, 17 de febrero de 2009 15:43 Para: [email protected] Asunto: Re: [cas-user] Query ticket granting ticket Others have mentioned how to get the data you're looking for from the CAS core API, which is valuable information. There is another important aspect of your problem that you must address, which is the delivery of that data to the client application. Ideally you'd leverage authentication attributes to accomplish this, but there is currently no way to communicate those to CAS clients. Alternatively, you could possibly stretch the definition of principal attributes to accomplish this. In that case you would need to develop your own implementation of IPersonAttributeDao that could resolve the service ticket from the principal ID. You'd then wire in your custom attribute resolver into your Spring context by the name of attributeRepository, and clients could get at this attribute by requesting a SAML payload at /samlValidate instead of /serviceValidate. Best of luck, Marvin -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
