| | |
| | | } |
| | | |
| | | @Override |
| | | public AdminUserDO getTenantUser(String username) { |
| | | AdminUserDO userByUsername = userService.getUserByUsername(username); |
| | | return userByUsername; |
| | | } |
| | | |
| | | @Override |
| | | public AuthLoginRespVO login(AuthLoginReqVO reqVO) { |
| | | // 校验验证码 |
| | | validateCaptcha(reqVO); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public AuthLoginRespVO refreshToken(String refreshToken, String clientId) { |
| | | OAuth2AccessTokenDO accessTokenDO = oauth2TokenService.refreshAccessToken(refreshToken, clientId); |
| | | return AuthConvert.INSTANCE.convert(accessTokenDO); |
| | | } |
| | | |
| | | @Override |
| | | public void logout(String token, Integer logType) { |
| | | // 删除访问令牌 |
| | | OAuth2AccessTokenDO accessTokenDO = oauth2TokenService.removeAccessToken(token); |