Merge pull request #1136 from dataease/pr@v1.4@refactor_重构代码

refactor: 重构代码
This commit is contained in:
fit2cloud-chenyw 2021-11-06 15:32:53 +08:00 committed by GitHub
commit 2db1fed892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();