【问题标题】:CAS credentials badCAS 凭据错误
【发布时间】:2013-08-31 15:03:34
【问题描述】:

请帮忙

我想使用 CAS 身份验证时遇到问题,错误是无效凭据,这显示了我的日志

浏览器

Estado HTTP 401 - Authentication Failed: Bad credential`s

记录 CAS

ServiceValidateController [ERROR] TicketException generating ticket for: [callbackUrl: https://localhost:8443/receptor]

感谢您的宝贵时间

 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 with name 'cas'
 DispatcherServlet [DEBUG] Successfully completed request
 DispatcherServlet [DEBUG] DispatcherServlet with name 'cas' determining Last-Modified value for [/cas/serviceValidate]
 SimpleUrlHandlerMapping [DEBUG] Mapping [/serviceValidate] to handler 'org.jasig.cas.web.ServiceValidateController@26a75b82'
 DispatcherServlet [DEBUG] Last-Modified value for [/cas/serviceValidate] is: -1
 DispatcherServlet [DEBUG] DispatcherServlet with name 'cas' processing request for [/cas/serviceValidate]
 CasArgumentExtractor [DEBUG] Extractor generated service for:           https://geo.org.bo:443/j_spring_cas_security_check
 HttpBasedServiceCredentialsAuthenticationHandler [DEBUG] Attempting to resolve credentials for [callbackUrl: https://localhost:8443/receptor]
 HttpClient [DEBUG] Response Code did not match any of the acceptable response codes.  Code returned was 404
 AuthenticationManagerImpl [INFO] AuthenticationHandler: org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler failed to authenticate the user which provided the 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
at      org.jasig.cas.CentralAuthenticationServiceImpl.delegateTicketGrantingTicket(CentralAuthenticationServiceImpl.java:291)

【问题讨论】:

    标签: spring-security cas


    【解决方案1】:

    此错误表明 CAS 服务器正在尝试(直接)连接到客户端应用程序以传递代理授予票证 (PGT)。 https://localhost:8443/receptor 的 url 是正在尝试的,应用程序返回 404-Not Found。

    如果您的客户端应用程序不需要代表用户登录其他 CAS 服务,那么您不需要代理。 PGT 故障排除比标准 CAS 1.0、CAS 2.0 和 SAML 1.1 协议更困难。

    如果你想使用代理票,那么你可以检查https://wiki.jasig.org/display/CASC/Using+the+CAS+Client+3.1+with+Spring+Security

    如果您不需要代理票,那么您可以查看http://static.springsource.org/spring-security/site/docs/3.0.x/reference/cas.html

    【讨论】:

      猜你喜欢
      • 2013-09-22
      • 2016-09-12
      • 2017-09-23
      • 1970-01-01
      • 1970-01-01
      • 2017-01-27
      • 2018-09-10
      • 2017-07-11
      • 2014-11-10
      相关资源
      最近更新 更多