2.0.10 • Published 4 years ago
umi-plugin-cas v2.0.10
#cas客户端登陆
##1.1配置
带*号的为必传地址
['umi-plugin-cas',{
action:'/api/scenter/checkTicket',
host:'//cas.test.360vrsh.com',
type:'store',
//以下为可选参数
exclude:["/user/register"],
redirect:"/welcome",
cookie:{
path:'/',
domain:'360vrsh.com'
},
uri:{
login:'member/login',
logout:'member/logout',
soc:'soc/member'
}
}]
名称 | 必须 | 类型 | 示例 | 说明 |
---|---|---|---|---|
action | Y | string | /api/scenter/checkTicket | 验证登陆的接口地址 |
host | Y | string | //cas.test.360vrsh.com | cas的登陆地址 |
type | N | string | (store|member|agnet|) | 登陆的类型(默认为空) |
exclude | N | array | ["/user/register"] | 默认不回跳的路由,回调到默认地址 |
redirect | N | string | /welcome | 回调的地址 默认为 / |
cookie | N | object | cookie设置 | |
path | N | object | 路径设置 | |
path.login | N | string | 登陆地址 默认为 {\$host}\/{\$type}\/login | |
path.logout | N | string | 退出地址 默认为{\$host}\/{\$type}\/logout |
2.0.9
4 years ago
2.0.10
4 years ago
3.0.2
4 years ago
2.0.8
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.0.7
4 years ago
2.0.6
4 years ago
2.0.5
4 years ago
2.0.4
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.1.0
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago