Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Jan 17, 2024
1 parent 87b370f commit cef7dba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ object KyuubiAuthenticationFactory extends Logging {
}
}

def getValidPasswordAuthMethod(authTypes: Set[AuthType]): AuthMethod = {
if (authTypes == Set(NOSASL)) AuthMethods.NONE
def getValidPasswordAuthMethod(authTypes: Seq[AuthType]): AuthMethod = {
if (authTypes == Seq(NOSASL)) AuthMethods.NONE
else if (authTypes.contains(NONE)) AuthMethods.NONE
else if (authTypes.contains(LDAP)) AuthMethods.LDAP
else if (authTypes.contains(JDBC)) AuthMethods.JDBC
Expand Down

0 comments on commit cef7dba

Please sign in to comment.