Skip to content

Commit

Permalink
fix word spelling in AuthenticationManagerDelegator (#10777)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangShenao authored Jul 13, 2023
1 parent 9069730 commit 8fa83ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -161,7 +161,7 @@ public PasswordEncoder passwordEncoder() {
public IAuthenticationManager authenticationManager(
ObjectProvider<LdapAuthenticationManager> ldapAuthenticatoinManagerObjectProvider,
ObjectProvider<DefaultAuthenticationManager> defaultAuthenticationManagers, AuthConfigs authConfigs) {
return new AuthenticationNamagerDelegator(defaultAuthenticationManagers,
return new AuthenticationManagerDelegator(defaultAuthenticationManagers,
ldapAuthenticatoinManagerObjectProvider, authConfigs);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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> defaultAuthenticationManager;

private ObjectProvider<LdapAuthenticationManager> ldapAuthenticatoinManager;
private ObjectProvider<LdapAuthenticationManager> ldapAuthenticationManager;

private AuthConfigs authConfigs;

public AuthenticationNamagerDelegator(ObjectProvider<DefaultAuthenticationManager> nacosAuthManager,
ObjectProvider<LdapAuthenticationManager> ldapAuthenticationProvider, AuthConfigs authConfigs) {
public AuthenticationManagerDelegator(ObjectProvider<DefaultAuthenticationManager> nacosAuthManager,
ObjectProvider<LdapAuthenticationManager> ldapAuthenticationProvider, AuthConfigs authConfigs) {
this.defaultAuthenticationManager = nacosAuthManager;
this.ldapAuthenticatoinManager = ldapAuthenticationProvider;
this.ldapAuthenticationManager = ldapAuthenticationProvider;
this.authConfigs = authConfigs;
}

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 8fa83ce

Please sign in to comment.