在cas server中登录后怎么取得当前的用户名

在cas server中登录后怎么取得当前的用户名,第1张

在server的org.jasig.cas.web.flow.AuthenticationViaFormAction类的doBind方法中

Java代码

UsernamePasswordCredentials credentials = (UsernamePasswordCredentials) binder.getTarget()

credentials里就有用户名

在cas client上注册时,把用户和密码再同步到cas server数据库中

就是这个意思。

CAS server

通票售票处

[例句]The following figure demonstrates the authentication flow path of a system that has a CAS server integrated.

下图说明了在集成了CAS服务器的系统中身份验证是如何执行的。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/9895473.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-03
下一篇 2023-05-03

发表评论

登录后才能评论

评论列表(0条)

保存