问题描述
- spring整合shrio+cas单点登录
- 我想不通过登录界面登录,而是通过发送一个id后在后台实现登录,这要这么实现了。这里有使用到spring的flow。
<view-state id=""viewLoginForm"" view=""casLoginView"" model=""credential""> <binder> <binding property=""username"" /> <binding property=""password"" /> </binder> <on-entry> <set name=""viewScope.commandName"" value=""'credential'"" /> </on-entry> <transition on=""submit"" bind=""true"" validate=""true"" to=""realSubmit""> <evaluate expression=""authenticationViaFormAction.doBind(flowRequestContext flowScope.credential)"" /> </transition> </view-state>
如何不通过viewLoginForm这方方式来登录,而是直接在后台登录?
解决方案
解决方案二:
谁记得住那么长的ID呢。。。不过你可以弄个二维码登录,那样的话,或者手机短信动态登录。
时间: 2024-08-02 15:41:42