Browse Source

更新

tags/v2.5.2^2
xiaoying 1 year ago
parent
commit
37f1a11a8d
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      tuoheng_oidc_server/src/main/java/com/tuoheng/service/impl/ThirdServiceImpl.java

+ 3
- 2
tuoheng_oidc_server/src/main/java/com/tuoheng/service/impl/ThirdServiceImpl.java View File

@@ -42,8 +42,9 @@ public class ThirdServiceImpl implements ThirdService {
@Override
public JsonResult authorize(String token) {

String result = HttpUtils.sendPost(ThirdConstant.OAUTH_URL, token);
//String result = HttpUtils.sendPost(ThirdConstant.OAUTH_URL, token);
//此时模拟已获取username 以及password
String result = "csadmin";

//通过oidc的密码模式获取授权token 等相关信息数据
TokenResult tokenResult = getToken(result);
@@ -52,7 +53,7 @@ public class ThirdServiceImpl implements ThirdService {
//此时通过token获取当前用户的相关权限信息并进行封装
tokenResult = getClientResult(tokenResult);
//数据封装完毕返回数据 以及相关地址 -> 是否重定向
return null;
return JsonResult.success(tokenResult);
}

/**

Loading…
Cancel
Save