我尝试配置Apereo CAS 5.0.6 REST API,并且当我发送POST请求以获取TGT时,我收到此错误:
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上使用RESTED尝试过这个:
我也有401。
我使用Docker镜像apereo / cas:v5.0.6。
我的pom.xml:
<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>
当我使用Firefox
转到https://cas.services/cas/时,验证工作正常答案 0 :(得分:0)
它缺少cas.propeties中的cas.authn.ldap配置...