Browse Source

修改登录时获取SSO用户角色接口

丁治程 3 months ago
parent
commit
c06899112a

+ 3 - 0
jeecg-module-interlock/src/main/java/org/jeecg/modules/iotedgeConfig/util/ConfigInfo.java

@@ -87,4 +87,7 @@ public class ConfigInfo {
 
     /** IoTEdge-根据组织id查询设备信息 */
     public static String IOTEDGE_GETINFOBYGROUPID = "IoTEdge.getInfoByGroupID";
+
+    /** SSO-获取SSO用户角色 */
+    public static String SSO_GETSSORLOE = "SSO.GetSSORole";
 }

+ 2 - 2
jeecg-module-interlock/src/main/java/org/jeecg/modules/ssoClient/controller/SSOLoginLogoutController.java

@@ -711,8 +711,8 @@ public class SSOLoginLogoutController {
      *  sso登录,获取当前sso用户的角色,是否是系统管理员
      */
     public  String getSSORole(String eiToken){
-         String url = "http://192.168.2.248:8188/v4.0/users/me";
-//        String url = configService.getConfigValue(ConfigInfo.SSO_LOGIN_URL);
+         //String url = "http://192.168.2.248:8188/v4.0/users/me";
+        String url = configService.getConfigValue(ConfigInfo.SSO_GETSSORLOE);
         // 设置请求头部
         HttpHeaders headers = new HttpHeaders();
         headers.setContentType(MediaType.APPLICATION_JSON);