This is an automated email from the ASF dual-hosted git repository.

zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new ba5f973049a Fix AuthorityRule.getAuthenticatorType() (#30072)
ba5f973049a is described below

commit ba5f973049ae2419ef8de037e1e140d1d43a8012
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Feb 8 14:39:10 2024 +0800

    Fix AuthorityRule.getAuthenticatorType() (#30072)
    
    * Remove useless pipeline distsql fixture
    
    * Refactor authority distsql-handler's package
    
    * Fix AuthorityRule.getAuthenticatorType()
---
 .../java/org/apache/shardingsphere/authority/rule/AuthorityRule.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/kernel/authority/core/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
 
b/kernel/authority/core/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
index a0216156250..30efd1bcc11 100644
--- 
a/kernel/authority/core/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
+++ 
b/kernel/authority/core/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
@@ -54,7 +54,7 @@ public final class AuthorityRule implements GlobalRule {
     public String getAuthenticatorType(final ShardingSphereUser user) {
         return 
configuration.getAuthenticators().containsKey(user.getAuthenticationMethodName())
                 ? 
configuration.getAuthenticators().get(user.getAuthenticationMethodName()).getType()
-                : 
Optional.ofNullable(configuration.getDefaultAuthenticator()).orElse("");
+                : 
Optional.ofNullable(configuration.getAuthenticators().get(configuration.getDefaultAuthenticator()).getType()).orElse("");
     }
     
     /**

Reply via email to