我正在成功地使用Apereo 6.0.7通过web登录和JWT对我的用户进行身份验证。我还实现了委托身份验证,以使用管理员配置文件模拟给定的常规用户。
现在,我想通过Apereo REST API执行相同的过程。我已经成功地配置了这些API来使用用户名和密码对用户进行身份验证。例如(通过curl):
curl -k -X POST \
https://local.host.it:8444/cas/v1/tickets/ \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'cache-control: no-cache' \
-d 'token=true&username=andrea&password=secretpswd'但是,我还不能执行代理登录。使用已配置的分隔符提供用户名和代理不起作用。例如,使用/作为分隔符(编码为%2F):
curl -k -X POST \
https://local.host.it:8444/cas/v1/tickets/ \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'cache-control: no-cache' \
-d 'token=true&username=andrea%2Fsurrogate&password=secretpswd'返回401。有人能帮我找找丢失的东西吗?谢谢。
发布于 2021-11-17 08:40:18
我找到了答案。版本6.2.0中引入了对API REST的代理支持
https://github.com/apereo/cas/commit/678d78dba004289a93466cbec9d28bcae7d57a14
https://stackoverflow.com/questions/69988981
复制相似问题