|
@@ -420,7 +420,7 @@ public class RestClientService {
|
|
|
* des: 新增 SSO 用户
|
|
|
* date: 2024/8/5
|
|
|
*/
|
|
|
- public JSONObject addSSOUser(String userName){
|
|
|
+ public JSONObject addSSOUser(String userName,String password){
|
|
|
ArrayList<String> scopList = new ArrayList<>();
|
|
|
scopList.add("Admin");
|
|
|
|
|
@@ -443,7 +443,9 @@ public class RestClientService {
|
|
|
jsonObject.put("clientSecret",clientSecret);
|
|
|
jsonObject.put("action","append");
|
|
|
jsonObject.put("scopes",scopList);
|
|
|
- //jsonObject.put("password","Asdfg@123");
|
|
|
+ if (ObjectUtil.isNotNull(password) || !"".equals(password)) {
|
|
|
+ jsonObject.put("password",password);
|
|
|
+ }
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
MediaType type = MediaType.parseMediaType("application/json; charset=UTF-8");
|
|
|
headers.setContentType(type);
|