update 跨服务获取token
This commit is contained in:
+14
@@ -61,6 +61,8 @@ public class LoginController {
|
||||
private ISysDictService sysDictService;
|
||||
@Resource
|
||||
private BaseCommonService baseCommonService;
|
||||
@Resource
|
||||
private AuthenticationUtils authenticationUtils;
|
||||
|
||||
private static final String BASE_CHECK_CODES = "qwertyuiplkjhgfdsazxcvbnmQWERTYUPLKJHGFDSAZXCVBNM1234567890";
|
||||
/**
|
||||
@@ -571,4 +573,16 @@ public class LoginController {
|
||||
result.setResult(publicKeyBase64);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 给其他系统返回RSA公钥
|
||||
* 私钥存redis
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "获取公钥2")
|
||||
@GetMapping("/getStandardsRSAPublicKey")
|
||||
public String getStandardsRSAPublicKey() {
|
||||
return authenticationUtils.getPublicKey();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user