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]<mailto:[email protected]>

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/5cb216e926a807bd4abc47e8a68c4c0dcd40b0c2.camel%40uvic.ca.

Reply via email to