Hi Ray, I checked the file, I understood it despite the fact that I'm not a Java developper.
However, I think this is not what I was looking for. I will rephrase my question. Context of the situation: development of a CAS client library for authentication. I'm looking for the proper way to validate the ticket that is passed in the URL. Those tickets can be identified depending on the 3 first characters: "ST-" or "PT-". Service tickets or proxy tickets. When the CAS client library detects those tickets in the URL, it is supposed to trigger either a serviceValidate either a proxyValidate service. According to me, there are two ways to implement this mechanism: 1. Based on the ticket type, trigger one or the other service validation service. 2. Based on the configuration, check if the library is supposed to work in proxy mode, and if yes use proxyValidate, if not use serviceValidate. Now, what's I'm asking here is precisely that, what is the proper way to validate a ticket, should it be on the ticket type that the user receive in query parameter or based on the configuration of the CAS client ? You can test online the stuff I'm developing here: https://cas-bundle-demo.herokuapp.com/ Thanks. On Friday, November 15, 2019 at 12:07:13 AM UTC+1, rbon wrote: > > Pol, > > In the java client, > https://github.com/apereo/java-cas-client/blob/master/cas-client-core/src/main/java/org/jasig/cas/client/proxy/Cas20ProxyRetriever.java, > > XmlUtils is used to get the 'proxyTicket'. Not sure why it is in XML but > this might help you track down how it was done here. > > Ray > > On Tue, 2019-11-12 at 23:26 -0800, Pol Dellaiera wrote: > > Hi, > > I'm writing a CAS library and I'm facing a question and I don't know how > to address it. > > The question is the following: > > * What is the proper way to detect the type of a ticket in the URL ? > > - By doing some introspection in the request URL and detecting if the > ticket starts with ST- (for service ticket) or PT- (for proxy ticket) ? > - By checking the configuration of the serviceValidate and see if the > parameter pgtUrl is set or not. > > I don't know what is the best option for the moment, any help/advice is > welcome. > > -- > > Ray Bon > Programmer Analyst > Development Services, University Systems > 2507218831 | CLE 019 | [email protected] <javascript:> > > I respectfully acknowledge that my place of work is located within the > ancestral, traditional and unceded territory of the Songhees, Esquimalt and > WSÁNEĆ Nations. > -- - 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/bf933be8-3e04-43df-a82a-2de94bc0c1d9%40apereo.org.
