11.5.1、标准CAS认证
配置前必看:
部署认证对接包(11.3章节)
修改配置文件(11.5章节)
#标准CAS认证
auth.loginHelpers=special
#默认选择哪种方式,
auth.bean=pubcas
#移动端cas认证(若移动端走cas,务必配置此项,否则移动端通常走oauth2)
auth.mobbean=pubcas
#以下两个参数固定配置,原有此参数注释
auth.special.authHelper=pubauthapp/SpecialLoginHelper2
auth.special.useAppAuth=true
#以下两个参数根据现场实际配置,登录地址和校验地址
emaphome.login_url=http://auth.hiaskc.com/cas/login
auth.ticket.url=http://auth.hiaskc.com/cas/serviceValidate
#此配置项最后user为第三方认证平台session的id字段,根据实际情况修改
auth.usernode.id=//cas:serviceResponse/cas:authenticationSuccess/cas:uid
#此配置项最后XM为第三方认证平台session的姓名字段,根据实际情况修改
auth.usernode.name=//cas:serviceResponse/cas:authenticationSuccess/cas:attributes/cas:cn
#退出地址
emaphome.logout_url=http://auth.hiaskc.com/cas/logout?service=http://ehall.wisedu.com/qljfwapp/sys/pubauthapp/publogout/logout.do