Thanks for the response.
What I didn't get from your response is this- Is doing the GET/POST and parsing 
the response a possible solution? My own knowledge about Spring etc is limited. 
So, figuring out how to create a Controller and wire it into the framework may 
turn out to be harder than doing a GET/POST and parsing the response. So, if it 
is possible to do a GET/POST and parse the response, I would like some pointers 
on how to do that.

Thanks.


----- Original Message ----
From: Scott Battaglia <[EMAIL PROTECTED]>
To: Yale CAS mailing list <[email protected]>
Sent: Monday, March 12, 2007 8:19:22 PM
Subject: Re: How to obtain a service ticket?

If you want to do something like that I recommend creating a different endpoint 
Controller that takes your parameters constructs the credentials and passes 
them to an instance of CentralAuthenticationService which would allow you to 
obtain a service ticket which you can return as the body of your response.  
This gets around the whole parsing the GET and doing a POST to the normal 
workflow. 

-Scott


On 3/12/07, t ray <[EMAIL PROTECTED]> wrote:
I need to be able to authenticate a username/password combo received from a 
legacy NON-webapp. From reading some of the old forum messages( 
http://tp.its.yale.edu/pipermail/cas/2004-July/000617.html) , it seems I can do 
a get/post to the CAS login servlet and parse the response for a service ticket 
(not particularly appealing). Another method appears to be to use the 
ServiceTicketValidator class and call validate() with a service ticket. 
However, I am not sure how to get a service ticket in the first place (an 
unused service ticket is what I need). The documentation for CASFilter and 
CASValidateFilter indicate that these classes can be used to do validation but 
I am not sure how (there don't seem to be any validate() kind of methods on 
either of these 2 classes). 
 
Can someone please clarify? If I am going to use the get/post method, what is 
the name of the params to pass (Is ?username=xyz&password=abc ok?)
 
Thanks for your help.
 



Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

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





-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas


 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to