spring security - CAS credentials bad -


a please

i have problem when want use cas authentication, error invalid credentials, shows me log

browser

estado http 401 - authentication failed: bad credential`s 

log cas

servicevalidatecontroller [error] ticketexception generating ticket for: [callbackurl: https://localhost:8443/receptor] 

thanks time

 dispatcherservlet [debug] rendering view [org.springframework.web.servlet.view.redirectview: unnamed; url [https://geo.org.bo:443/geonetwork/j_spring_cas_security_check?ticket=st-2-dlgdarnzdtphwza9krt9-cas]] in dispatcherservlet name 'cas'  dispatcherservlet [debug] completed request  dispatcherservlet [debug] dispatcherservlet name 'cas' determining last-modified value [/cas/servicevalidate]  simpleurlhandlermapping [debug] mapping [/servicevalidate] handler 'org.jasig.cas.web.servicevalidatecontroller@26a75b82'  dispatcherservlet [debug] last-modified value [/cas/servicevalidate] is: -1  dispatcherservlet [debug] dispatcherservlet name 'cas' processing request [/cas/servicevalidate]  casargumentextractor [debug] extractor generated service for:           https://geo.org.bo:443/j_spring_cas_security_check  httpbasedservicecredentialsauthenticationhandler [debug] attempting resolve credentials [callbackurl: https://localhost:8443/receptor]  httpclient [debug] response code did not match of acceptable response codes.  code returned 404  authenticationmanagerimpl [info] authenticationhandler: org.jasig.cas.authentication.handler.support.httpbasedservicecredentialsauthenticationhandler failed authenticate user provided following credentials: [callbackurl:      https://localhost:8443/receptor]  servicevalidatecontroller [error] ticketexception generating ticket for: [callbackurl: https://localhost:8443/receptor]  org.jasig.cas.ticket.ticketcreationexception: error.authentication.credentials.bad @      org.jasig.cas.centralauthenticationserviceimpl.delegateticketgrantingticket(centralauthenticationserviceimpl.java:291) 

this error indicates cas server trying (directly) connect client application deliver proxy granting ticket (pgt). url of https://localhost:8443/receptor being tried, , app returning 404-not found.

if client application doesn't need log other cas services on users behalf, don't need proxying. troubleshooting pgts more difficult standard cas 1.0, cas 2.0, , saml 1.1 protocols.

if want use proxy tickets, might check https://wiki.jasig.org/display/casc/using+the+cas+client+3.1+with+spring+security

if don't need proxy tickets, might check http://static.springsource.org/spring-security/site/docs/3.0.x/reference/cas.html


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -