update 跨服务获取token

This commit is contained in:
lijiarao
2021-09-15 13:57:21 +08:00
parent 93aad30c16
commit 2057c0476e
3 changed files with 51 additions and 3 deletions
@@ -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();
}
}