mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 17:07:49 +08:00
feat : jwt
This commit is contained in:
@@ -4,7 +4,30 @@ Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
username=admin&password=admin
|
||||
|
||||
#> {%
|
||||
# client.global.set("admin_token", response.body.data.token);
|
||||
#%}
|
||||
> {%
|
||||
client.global.set("admin_token", response.body.data.access_token);
|
||||
client.global.set("refresh_token", response.body.data.refresh_token);
|
||||
%}
|
||||
|
||||
|
||||
### 登录
|
||||
GET {{host}}/admin/adminUser/getInfo
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Authorization: Bearer {{admin_token}}
|
||||
|
||||
|
||||
### 登录
|
||||
POST {{host}}/admin/passport/login
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
username=admin&password=123456
|
||||
|
||||
> {%
|
||||
client.global.set("admin_token", response.body.data.access_token);
|
||||
%}
|
||||
|
||||
|
||||
### 登录
|
||||
GET {{host}}/admin/passport/getInfo
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Authorization: Bearer {{admin_token}}
|
||||
Reference in New Issue
Block a user