首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CAS REST身份验证失败

CAS REST身份验证失败
EN

Stack Overflow用户
提问于 2018-02-01 09:43:53
回答 1查看 945关注 0票数 0

我尝试配置Apereo 5.0.6 REST,并且我已经配置了,当我发送一个POST请求以获得一个TGT时,我得到了以下错误:

代码语言:javascript
复制
WARN [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - 
<Authentication has failed. Credentials may be incorrect or CAS cannot find authentication
handler that supports [username] of type [UsernamePasswordCredential], which suggests a configuration problem.>

我在Firefox上尝试过这样的方法:

  • 网址:https://cas.services/cas/v1/tickets
  • 方法:员额
  • 标题:内容类型应用程序/x-www-form-urlencoded
  • 请求体: URLEncoded表单数据(带有用户名和密码表单字段)

我也有401美元。

我使用Docker映像apereo/ca:v5.0.6。

我的pom.xml:

代码语言:javascript
复制
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-webapp</artifactId>
    <version>${cas.version}</version>
    <type>war</type>
    <scope>runtime</scope>
</dependency>
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-support-spnego-webflow</artifactId>
    <version>${cas.version}</version>
</dependency>
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-support-rest</artifactId>
    <version>${cas.version}</version>
    <scope>runtime</scope>
</dependency>
<dependency>
    <groupId>org.samba.jcifs</groupId>
    <artifactId>jcifs-ext</artifactId>
    <version>0.9.4</version>
    <scope>runtime</scope>
</dependency>

当我使用火狐访问https://cas.services/cas/时,身份验证工作。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-03-07 10:04:05

它缺少了cas.authn.ldap配置在cas.propeties中..。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48559597

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档