CAS Apereo REST API - 身份验证失败
CAS Apereo REST API - Authentication has failed
我尝试配置 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 试过了:
- URL : https://cas.services/cas/v1/tickets
- 方法:POST
- Headers : Content-Type application/x-www-form-urlencoded
- 请求body:URL编码表单数据(带有用户名和密码表单字段)
我也有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>
当我使用 Firefoxhttps://cas.services/cas/ 访问 https://cas.services/cas/ 时身份验证有效
cas.propeties 中缺少 cas.authn.ldap 配置...
我尝试配置 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 试过了:
- URL : https://cas.services/cas/v1/tickets
- 方法:POST
- Headers : Content-Type application/x-www-form-urlencoded
- 请求body:URL编码表单数据(带有用户名和密码表单字段)
我也有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>
当我使用 Firefoxhttps://cas.services/cas/ 访问 https://cas.services/cas/ 时身份验证有效
cas.propeties 中缺少 cas.authn.ldap 配置...