diff --git a/plugin-default-impl/src/main/java/com/alibaba/nacos/plugin/auth/impl/NacosAuthConfig.java b/plugin-default-impl/src/main/java/com/alibaba/nacos/plugin/auth/impl/NacosAuthConfig.java index 2b8819e3596..d3b096ad5b4 100644 --- a/plugin-default-impl/src/main/java/com/alibaba/nacos/plugin/auth/impl/NacosAuthConfig.java +++ b/plugin-default-impl/src/main/java/com/alibaba/nacos/plugin/auth/impl/NacosAuthConfig.java @@ -19,7 +19,7 @@ import com.alibaba.nacos.auth.config.AuthConfigs; import com.alibaba.nacos.common.utils.StringUtils; import com.alibaba.nacos.core.code.ControllerMethodsCache; -import com.alibaba.nacos.plugin.auth.impl.authenticate.AuthenticationNamagerDelegator; +import com.alibaba.nacos.plugin.auth.impl.authenticate.AuthenticationManagerDelegator; import com.alibaba.nacos.plugin.auth.impl.authenticate.DefaultAuthenticationManager; import com.alibaba.nacos.plugin.auth.impl.authenticate.IAuthenticationManager; import com.alibaba.nacos.plugin.auth.impl.authenticate.LdapAuthenticationManager; @@ -161,7 +161,7 @@ public PasswordEncoder passwordEncoder() { public IAuthenticationManager authenticationManager( ObjectProvider ldapAuthenticatoinManagerObjectProvider, ObjectProvider defaultAuthenticationManagers, AuthConfigs authConfigs) { - return new AuthenticationNamagerDelegator(defaultAuthenticationManagers, + return new AuthenticationManagerDelegator(defaultAuthenticationManagers, ldapAuthenticatoinManagerObjectProvider, authConfigs); } diff --git a/plugin-default-impl/src/main/java/com/alibaba/nacos/plugin/auth/impl/authenticate/AuthenticationNamagerDelegator.java b/plugin-default-impl/src/main/java/com/alibaba/nacos/plugin/auth/impl/authenticate/AuthenticationManagerDelegator.java similarity index 87% rename from plugin-default-impl/src/main/java/com/alibaba/nacos/plugin/auth/impl/authenticate/AuthenticationNamagerDelegator.java rename to plugin-default-impl/src/main/java/com/alibaba/nacos/plugin/auth/impl/authenticate/AuthenticationManagerDelegator.java index 51b158cf13c..ab48d962c66 100644 --- a/plugin-default-impl/src/main/java/com/alibaba/nacos/plugin/auth/impl/authenticate/AuthenticationNamagerDelegator.java +++ b/plugin-default-impl/src/main/java/com/alibaba/nacos/plugin/auth/impl/authenticate/AuthenticationManagerDelegator.java @@ -31,18 +31,18 @@ * @author Weizhanâ–ªYun * @date 2023/1/12 23:31 */ -public class AuthenticationNamagerDelegator implements IAuthenticationManager { +public class AuthenticationManagerDelegator implements IAuthenticationManager { private ObjectProvider defaultAuthenticationManager; - private ObjectProvider ldapAuthenticatoinManager; + private ObjectProvider ldapAuthenticationManager; private AuthConfigs authConfigs; - public AuthenticationNamagerDelegator(ObjectProvider nacosAuthManager, - ObjectProvider ldapAuthenticationProvider, AuthConfigs authConfigs) { + public AuthenticationManagerDelegator(ObjectProvider nacosAuthManager, + ObjectProvider ldapAuthenticationProvider, AuthConfigs authConfigs) { this.defaultAuthenticationManager = nacosAuthManager; - this.ldapAuthenticatoinManager = ldapAuthenticationProvider; + this.ldapAuthenticationManager = ldapAuthenticationProvider; this.authConfigs = authConfigs; } @@ -78,7 +78,7 @@ public boolean hasGlobalAdminRole(NacosUser nacosUser) { private IAuthenticationManager getManager() { if (AuthSystemTypes.LDAP.name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType())) { - return ldapAuthenticatoinManager.getIfAvailable(); + return ldapAuthenticationManager.getIfAvailable(); } return defaultAuthenticationManager.getIfAvailable();