|
@@ -137,14 +137,20 @@ public class FanWeiSSOAuthtication extends ThirdAppAuthtication {
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ logger.info("FanWeiSSOAuthtication token url:" + apiResult);
|
|
|
|
+
|
|
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(RSAUtils.decryptByKey(RSAUtils.getPrivateKey(Base64.decodeBase64(privateKey))
|
|
, Base64.decodeBase64(apiResult.getBytes("UTF-8"))));
|
|
, Base64.decodeBase64(apiResult.getBytes("UTF-8"))));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ logger.info("FanWeiSSOAuthtication user:" + userJSONString);
|
|
|
|
+
|
|
userJSONString = userJSONString.substring(1, userJSONString.length() - 1).replace("\\", "");
|
|
userJSONString = userJSONString.substring(1, userJSONString.length() - 1).replace("\\", "");
|
|
|
|
|
|
|
|
+ logger.info("FanWeiSSOAuthtication user replace:" + userJSONString);
|
|
|
|
+
|
|
JSONObject userInfo = JSONObject.parseObject(userJSONString);
|
|
JSONObject userInfo = JSONObject.parseObject(userJSONString);
|
|
if(userInfo.get("jobNum") == null){
|
|
if(userInfo.get("jobNum") == null){
|
|
logger.info("FanWeiSSOAuthtication:getuserinfo fail");
|
|
logger.info("FanWeiSSOAuthtication:getuserinfo fail");
|