增加LoginUserContextHolder获取当前登录人对象

This commit is contained in:
zhult13
2022-06-26 23:14:54 +08:00
parent 6e27f055f4
commit 1c15c0ac63
9 changed files with 168 additions and 38 deletions
+9
View File
@@ -20,10 +20,19 @@ http://localhost:8093/test/notAuth
 
### 3.2. 测试接口二
通过 @LoginUser 获取当前登录人
http://localhost:8093/test/auth?access_token=xxx
> - xxx 需替换为正确的 access_token
> - 可以通过修改 `bootstrap.yml` 文件中的 `zlt.security.ignore.httpUrls` 参数添加排除校验的url。
 
### 3.3. 测试接口三
通过 LoginUserContextHolder 获取当前登录人
http://localhost:8093/test/auth2?access_token=xxx
> - xxx 需替换为正确的 access_token
 
## 四、获取access_token
可使用任意授权模式获取;