Hi,

I am generating service tickets using restlet-servlet. I am at the moment able 
to generate TGT & Service tickets from the TGT. 
However when i try to validate service tickets, i always get  validation error.

Sequence of events 

1. POST /api/v1/tickets HTTP/1.0 Content-Type: 
application/x-www-form-urlencoded Accept: text/plain Host: localhost:8443 
User-Agent: Drupal (+http://drupal.org/) Content-Length: 35 
username=user1&password=user1


Response: TGT-13-K5J4jSLcTXXtBcZHx3pVxqqKMy2moZ6fbxRTmzOs94XyTMEomB-cas

2. POST POST 
/api/v1/tickets/TGT-13-K5J4jSLcTXXtBcZHx3pVxqqKMy2moZ6fbxRTmzOs94XyTMEomB-cas HTTP/1.0
 Content-Type: application/x-www-form-urlencoded Accept: text/plain Host: 
localhost:8443 User-Agent: Drupal (+http://drupal.org/) Content-Length: 35 
servicename=test.myaccount.com


Response:  ST-13-1SR19VRb6QI6ag9hqY0i-cas

3. GET 
: https://localhost:8443/api/validate?ticket=ST-13-1SR19VRb6QI6ag9hqY0i-cas&service=test.myaccount.com 

Response: 
<cas:serviceResponse xmlns:cas='http://cas.mysite.com/api'> 
<cas:authenticationFailure code='INVALID_TICKET'> ticket 
&#039;ST-13-1SR19VRb6QI6ag9hqY0i-cas&#039; not recognized 
</cas:authenticationFailure>
</cas:serviceResponse>

I am not clear if there is a configuration somewhere that needs to be set to 
get this working. 
greatly appreciate any pointers in right direction & feedback
-- 
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-dev

Reply via email to