增加LoginUserContextHolder获取当前登录人对象
This commit is contained in:
@@ -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
|
||||
可使用任意授权模式获取;
|
||||
|
||||
Reference in New Issue
Block a user