Hi Pietro, Are you sure you have successfully authenticated using the Rest API? The log you attached shows the following entry before the exception showing an authentication failure:
2011-10-11 10:48:27,109 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <AuthenticationHandler: mypackage.cas.authhandler.CustomPasswordAuthenticationHandler failed to authenticate the user which provided the following credentials: [username: admin]> 2011-10-11 10:48:27,109 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN ============================================================= WHO: [username: admin] WHAT: supplied credentials: [username: admin] ACTION: AUTHENTICATION_FAILED APPLICATION: CAS WHEN: Tue Oct 11 10:48:27 CEST 2011 CLIENT IP ADDRESS: 192.168.1.122 SERVER IP ADDRESS: 192.168.1.27 ============================================================= > 2011-10-11 10:48:27,109 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN ============================================================= WHO: [username: admin] WHAT: error.authentication.credentials.bad ACTION: TICKET_GRANTING_TICKET_NOT_CREATED APPLICATION: CAS WHEN: Tue Oct 11 10:48:27 CEST 2011 CLIENT IP ADDRESS: 192.168.1.122 SERVER IP ADDRESS: 192.168.1.27 ============================================================= Regards, Matt ________________________________________ From: Pietro [pietro....@gmail.com] Sent: 11 October 2011 09:58 To: cas-user@lists.jasig.org Subject: re:[cas-user] CAS 3.4.10 - CustomPasswordAuthenticationHandler - RESTFul API issue I have made further test and from Java HttpClient I have got TicketGrantingTicket but when I've tried get service ticket I get this exception (for details, I've attched error file): 2011-10-11 10:48:27,109 ERROR [org.jasig.cas.integration.restlet.TicketResource] - <error.authentication.credentials.bad> org.jasig.cas.ticket.TicketCreationException: error.authentication.credentials.bad at org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_aroundBody10(CentralAuthenticationServiceImpl.java:423) at org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_aroundBody11$advice(CentralAuthenticationServiceImpl.java:44) at org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(CentralAuthenticationServiceImpl.java:1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) -- 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