gpt4 book ai didi

java - CAS 服务器 4.0.x reSTLet api 提供的凭据为空

转载 作者:行者123 更新时间:2023-12-01 11:59:46 27 4
gpt4 key购买 nike

我成功使用 ldap 配置了 cas 服务器。登录工作正常。
现在,我尝试按照以下说明配置其余协议(protocol): http://jasig.github.io/cas/4.0.x/protocol/REST-Protocol.html

我使用restclient发送此POST请求:

https://localhost:8443/cas/v1/tickets
username=myUser
password=myPassword

我收到错误 400。cas服务器上有日志:

2015-01-21 13:41:50,513 DEBUG [org.jasig.cas.integration.restlet.TicketResource] - <Obtaining credentials...>
2015-01-21 13:41:50,513 DEBUG [org.jasig.cas.integration.restlet.TicketResource] - <>
2015-01-21 13:41:50,513 INFO [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - <LdapAuthenticationHandler failed authenticating null+password>
2015-01-21 13:41:50,514 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO: audit:unknown
WHAT: supplied credentials: [null+password]
ACTION: AUTHENTICATION_FAILED
APPLICATION: CAS
WHEN: Wed Jan 21 13:41:50 CET 2015
CLIENT IP ADDRESS: 0:0:0:0:0:0:0:1
SERVER IP ADDRESS: 0.0.0.0
=============================================================

>
2015-01-21 13:41:50,514 INFO [org.perf4j.TimingLogger] - <start[1421844110513] time[0] tag[AUTHENTICATE]>
2015-01-21 13:41:50,514 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO: audit:unknown
WHAT: 1 errors, 0 successes
ACTION: TICKET_GRANTING_TICKET_NOT_CREATED
APPLICATION: CAS
WHEN: Wed Jan 21 13:41:50 CET 2015
CLIENT IP ADDRESS: 0:0:0:0:0:0:0:1
SERVER IP ADDRESS: 0.0.0.0
=============================================================

>
2015-01-21 13:41:50,514 INFO [org.perf4j.TimingLogger] - <start[1421844110513] time[0] tag[CREATE_TICKET_GRANTING_TICKET]>
2015-01-21 13:41:50,514 ERROR [org.jasig.cas.integration.restlet.TicketResource] - <1 errors, 0 successes>
org.jasig.cas.authentication.AuthenticationException: 1 errors, 0 successes
[...]

提供的凭据似乎为空。导致此错误的原因是什么?
感谢您的帮助

最佳答案

您好,我目前也遇到同样的问题。如果 java 客户端调用 api,我会得到 400,而不是使用其余 chrome 扩展调用 201。顺便说一句,我发现的唯一线索是 http://restlet-discuss.1400322.n2.nabble.com/Servlet-Filter-using-request-getParameter-loses-Form-data-td2141035.html

关于java - CAS 服务器 4.0.x reSTLet api 提供的凭据为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28067569/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com