Hi Pietro,

Hmmm, seems strange.  The exception being logged is happening when CAS is 
trying to create a TGT - which you already have.  Have you change any other 
config?  Ticket expiration policies perhaps which might have caused the 
original TGT to become invalid?  I'm just guessing really.

Regards,
Matt

________________________________________
From: Pietro [pietro....@gmail.com]
Sent: 11 October 2011 10:30
To: cas-user@lists.jasig.org
Subject: RE:[cas-user] re:CAS 3.4.10 - CustomPasswordAuthenticationHandler  - 
RESTFul API issue

Hi Matt,
I'm using this Java HttpClient (from: 
https://wiki.jasig.org/display/CASUM/RESTful+API) in Debug mode on Eclipse and 
I've got, without error, TGT-ticket from method getTicketGrantingTicket(server, 
username, password).

But when jumped into method getServiceTicket(final String server,  final String 
ticketGrantingTicket, final String service) I've got HTTP ERROR 400 and 
Exception in log file.

Thanks in advance.

Pietro.


>From the Head of log file:

Hibernate: select allowedatt0_.RegisteredServiceImpl_id as Register1_0_0_, 
allowedatt0_.a_name as a2_0_, allowedatt0_.a_id as a3_0_ from rs_attributes 
allowedatt0_ where allowedatt0_.RegisteredServiceImpl_id=?
2011-10-11 10:48:10,760 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services.>
2011-10-11 10:48:16,657 INFO 
[org.jasig.cas.authentication.AuthenticationManagerImpl] - 
<AuthenticationHandler: 
mypackage.cas.authhandler.CustomPasswordAuthenticationHandler successfully 
authenticated the user which provided the following credentials: [username: 
admin]>
2011-10-11 10:48:16,657 INFO 
[org.jasig.cas.authentication.AuthenticationManagerImpl] - <Resolved principal 
admin>
2011-10-11 10:48:16,657 INFO 
[org.jasig.cas.authentication.AuthenticationManagerImpl] - <Principal found: 
admin>
2011-10-11 10:48:16,672 INFO 
[com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit 
trail record BEGIN
=============================================================
WHO: [username: admin]
WHAT: supplied credentials: [username: admin]
ACTION: AUTHENTICATION_SUCCESS
APPLICATION: CAS
WHEN: Tue Oct 11 10:48:16 CEST 2011
CLIENT IP ADDRESS: 192.168.1.122
SERVER IP ADDRESS: 192.168.1.27
=============================================================

>
2011-10-11 10:48:16,672 INFO 
[com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit 
trail record BEGIN
=============================================================
WHO: [username: admin]
WHAT: TGT-4-XyDtrzfO5OeRgBUxCsfbehLgzOeUvfVAKgvckdCI6HgbsQiNjk-elrond
ACTION: TICKET_GRANTING_TICKET_CREATED
APPLICATION: CAS
WHEN: Tue Oct 11 10:48:16 CEST 2011
CLIENT IP ADDRESS: 192.168.1.122
SERVER IP ADDRESS: 192.168.1.27
=============================================================
--
You are currently subscribed to cas-user@lists.jasig.org as: matt.k...@bskyb.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user


Information in this email including any attachments may be privileged, 
confidential and is intended exclusively for the addressee. The views expressed 
may not be official policy, but the personal views of the originator. If you 
have received it in error, please notify the sender by return e-mail and delete 
it from your system. You should not reproduce, distribute, store, retransmit, 
use or disclose its contents to anyone. Please note we reserve the right to 
monitor all e-mail communication through our internal and external networks. 
SKY and the SKY marks are trade marks of British Sky Broadcasting Group plc and 
are used under licence. British Sky Broadcasting Limited (Registration No. 
2906991), Sky Interactive Limited (Registration No. 3554332), Sky-In-Home 
Service Limited (Registration No. 2067075) and Sky Subscribers Services Limited 
(Registration No. 2340150) are direct or indirect subsidiaries of British Sky 
Broadcasting Group plc (Registration No. 2247735). All of the companies 
mentioned in this paragraph are incorporated in England and Wales and share the 
same registered office at Grant Way, Isleworth, Middlesex TW7 5QD.



-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to