|
@@ -89,7 +89,7 @@ public class FanWeiSSOAuthtication extends ThirdAppAuthtication {
|
|
}
|
|
}
|
|
|
|
|
|
String privateKey = mapentity.get("privatekey");
|
|
String privateKey = mapentity.get("privatekey");
|
|
- if(StringUtils.isEmpty(userUrl)){
|
|
|
|
|
|
+ if(StringUtils.isEmpty(privateKey)){
|
|
logger.info("FanWeiSSOAuthtication:privatekey is null");
|
|
logger.info("FanWeiSSOAuthtication:privatekey is null");
|
|
|
|
|
|
result.setErrorMessage("FanWeiSSOAuthtication:未配置泛微相关参数privatekey");
|
|
result.setErrorMessage("FanWeiSSOAuthtication:未配置泛微相关参数privatekey");
|
|
@@ -141,7 +141,7 @@ public class FanWeiSSOAuthtication extends ThirdAppAuthtication {
|
|
|
|
|
|
String userJSONString = "";
|
|
String userJSONString = "";
|
|
if(isDecode != null && "true".equals(isDecode)) {
|
|
if(isDecode != null && "true".equals(isDecode)) {
|
|
- userJSONString = new String(RSAUtils.decryptByKey(RSAUtils.getPrivateKey(Base64.decodeBase64(privateKey))
|
|
|
|
|
|
+ userJSONString = new String(FanWeiRSAUtils.decryptByKey(FanWeiRSAUtils.getPrivateKey(Base64.decodeBase64(privateKey))
|
|
, Base64.decodeBase64(apiResult.getBytes("UTF-8"))));
|
|
, Base64.decodeBase64(apiResult.getBytes("UTF-8"))));
|
|
}
|
|
}
|
|
|
|
|