refactor: 重构代码

This commit is contained in:
fit2cloud-chenyw 2021-11-06 15:31:50 +08:00
parent 8b7934539e
commit e0ae23fb07

View File

@ -57,6 +57,9 @@ public class F2CRealm extends AuthorizingRealm {
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken auth) throws AuthenticationException {
if (auth instanceof ASKToken) {
if (!authUserService.pluginLoaded()) {
throw new AuthenticationException("lic error");
}
Object accessKey = auth.getPrincipal();
Object signature = auth.getCredentials();