You need to send username and password in the request body as application/x-www-form-urlencoded and not as URL request params.
Dmitriy. Sent from my iPhone On Apr 8, 2012, at 22:38, "Tim Dalsing" <tdals...@vmware.com> wrote: > Turned on DEBUG and got this in the logs: > > 2012-04-08 11:18:31,169 DEBUG > [org.jasig.cas.integration.restlet.TicketResource] - <Obtaining > credentials...> > 2012-04-08 11:18:31,170 DEBUG > [org.jasig.cas.integration.restlet.TicketResource] - <[]> > 2012-04-08 11:18:31,178 DEBUG > [org.jasig.cas.integration.restlet.TicketResource] - <[]> > 2012-04-08 11:18:31,178 DEBUG > [org.jasig.cas.integration.restlet.TicketResource] - <Username from > RestletWebRequest: null> > 2012-04-08 11:18:31,209 DEBUG > [org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler] > - <User [null] failed authentication> > start[1333909111208] time[0] > tag[SimpleTestUsernamePasswordAuthenticationHandler] > 2012-04-08 11:18:31,209 INFO > [org.jasig.cas.authentication.AuthenticationManagerImpl] - > <AuthenticationHandler: > org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler > failed to authenticate the user which provided the following credentials: > [username: null]> > > The CURL command: > > curl -k -X POST > "https://tdalsing:8449/cas/v1/tickets?username=test&password=test" > > And this in the request dumper log: > > http-bio-8449-exec-2 > =============================================================== > http-bio-8449-exec-3 START TIME =08-Apr-2012 11:20:00 > http-bio-8449-exec-3 requestURI=/cas/v1/tickets > http-bio-8449-exec-3 authType=null > http-bio-8449-exec-3 characterEncoding=UTF-8 > http-bio-8449-exec-3 contentLength=-1 > http-bio-8449-exec-3 contentType=null > http-bio-8449-exec-3 contextPath=/cas > http-bio-8449-exec-3 header=user-agent=curl/7.21.7 > (x86_64-redhat-linux-gnu) libcurl/7.21.7 NSS/3.13.3.0 zlib/1.2.5 libidn/1.22 > libssh2/1.2.7 > http-bio-8449-exec-3 header=host=tdalsing:8449 > http-bio-8449-exec-3 header=accept=*/* > http-bio-8449-exec-3 locale=en_US > http-bio-8449-exec-3 method=POST > http-bio-8449-exec-3 parameter=password=test > http-bio-8449-exec-3 parameter=username=test > http-bio-8449-exec-3 pathInfo=/tickets > http-bio-8449-exec-3 protocol=HTTP/1.1 > http-bio-8449-exec-3 queryString=username=test&password=test > http-bio-8449-exec-3 remoteAddr=127.0.0.1 > http-bio-8449-exec-3 remoteHost=127.0.0.1 > http-bio-8449-exec-3 remoteUser=null > http-bio-8449-exec-3 requestedSessionId=null > http-bio-8449-exec-3 scheme=https > http-bio-8449-exec-3 serverName=tdalsing > http-bio-8449-exec-3 serverPort=8449 > http-bio-8449-exec-3 servletPath=/v1 > http-bio-8449-exec-3 isSecure=true > http-bio-8449-exec-3 > ------------------=-------------------------------------------- > http-bio-8449-exec-3 > ------------------=-------------------------------------------- > http-bio-8449-exec-3 authType=null > http-bio-8449-exec-3 contentType=text/html;charset=ISO-8859-1 > http-bio-8449-exec-3 header=Date=Sun, 08 Apr 2012 18:20:00 GMT > http-bio-8449-exec-3 header=Accept-Ranges=bytes > http-bio-8449-exec-3 header=Server=Noelios-Restlet-Engine/1.1..1 > http-bio-8449-exec-3 > header=Content-Type=text/html;charset=ISO-8859-1 > http-bio-8449-exec-3 header=Content-Length=308 > http-bio-8449-exec-3 header=Connection=close > http-bio-8449-exec-3 remoteUser=null > http-bio-8449-exec-3 status=400 > http-bio-8449-exec-3 END TIME =08-Apr-2012 11:20:00 > http-bio-8449-exec-3 > =============================================================== > > -Tim > -- > You are currently subscribed to cas-user@lists.jasig.org as: > dmitriy.kopyle...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user -- 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