Looks like a bit of chicken and egg situation for me- I need to do be able to 
do one of the following-
1. make sure my datasource is up and in valid state BEFORE I let the user 
attempt to login, OR
2. alternatively, I figure out during authentication that datasource is not up 
and redirect the user to a different page to allow it to be configured.

So, I figured that if I could do my preprocessing and then somehow gain a 
ticket, I could validate it etc per the code I mentioned. 

Is this achievable?


----- Original Message ----
From: Scott Battaglia <[EMAIL PROTECTED]>
To: Yale CAS mailing list <[email protected]>
Sent: Thursday, March 8, 2007 8:43:00 PM
Subject: Re: WHy is service ticket null?

You won't have a ticket available in your Request object unless you let the 
user authenticate to CAS and then have CAS redirect back to your service.

-Scott


On 3/8/07, t ray <[EMAIL PROTECTED]> wrote:
Hello,
I am having trouble getting the service ticket. I use the following code and 
ticket turns out to be null-
 
    ServiceTicketValidator sv = new ServiceTicketValidator();
    sv.setCasValidateUrl(" https://localhost:8443/cas/serviceValidate";);
    sv.setService("http://localhost:8080/examples/jsp2/dem/basic-stuff.jsp ");
    System.out.println("TICKET="+request.getParameter("ticket"));
    sv.setServiceTicket(request.getParameter("ticket"));
    sv.validate();

As per my understanding, one needs to either manually validate a ticket OR set 
up the filters etc within web.xml. I have NOT modified web.xml and I expected 
the above to work. Things work fine when I modify the web.xml and let the 
filters redirect my requests to CAS.
 
Suggestions?
 
Thanks.



Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta. 

_______________________________________________
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


 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to