我们正在使用 JASIG CAS 3.5.2,其中一项要求是从链接(查询字符串)中填写用户名字段。
有没有标准的方法来做到这一点?我们希望用户能够覆盖此默认值。
非常感谢
山姆
我找不到内置支持,所以无论如何我们都在使用“覆盖”自定义方法,所以我添加了:
<c:if test="${commandName == 'credentials' && empty credentials.username}">
<c:set target="${credentials}" property="username" value="${param.netid}" />
</c:if>
就在 casLoginView.jsp 中的 spring 表单元素之后
注意在 4.0.x 中,它被重命名为“凭据”,因此需要: