I think that error might be because you're using HTTP to access the REST service, but your CAS server is configured for HTTPS
cheers, john From: John Davis <[email protected]> To: [email protected] Date: 12/09/2011 09:27 Subject: Re:[cas-user] CAS 3.4.8 and RESTFul API issue Hi there, I've never seen the "error.authentication.credentials.unsupported" message before. I get "error.authentication.credentials.bad" if I enter incorrect credentials. Are you sure the credentials are the same as the ones you enter using the logon page? Sorry I can't be of more help Cheers, John From: "Pietro" <[email protected]> To: [email protected] Date: 09/09/2011 16:51 Subject: Re:[cas-user] CAS 3.4.8 and RESTFul API issue Hi, The 400 error occurs in the method: private static String getTicketGrantingTicket(final String server, final String username, final String password) in the Response from server: final String response = post.getResponseBodyAsString(); The Log is: <LOG> 9-set-2011 17.39.03 rest.test.Client getTicketGrantingTicket Invalid response code (400) from CAS server! 9-set-2011 17.39.07 rest.test.Client getTicketGrantingTicket INFO: Response (1k): <html> <head> <title>Status page</title> </head> <body> <h3>error.authentication.credentials.unsupported</h3><p>You can get technical details <a href=" http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1 ">here</a>.<br> Please continue your visit at our <a href="/">home page</a>. </p> </body> </html> </LOG> (final String server = " http://webserver:8888/cas-server-webapp-3.4.8-NEW/v1/tickets/"; final String username = "myuser"; final String password = "mypassword"; ) -- 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-user -- 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-user ________________________________________________________________________ The information contained in this message is intended for the addressee only and may contain confidential and/or privileged information. If you are not the addressee, please delete this message and notify the sender. You should not copy or distribute this message or disclose its contents to anyone. E-mail transmission cannot be guaranteed to be secure or free of errors or viruses. Therefore no reliance may be placed on this message without written confirmation from an authorised representative of its contents. ________________________________________________________________________ -- 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-user
