Update auth.go

This commit is contained in:
Daniel Hougaard
2024-06-16 07:41:01 +02:00
parent 4d194052b5
commit 44a898fb15

View File

@@ -27,9 +27,9 @@ var AVAILABLE_AUTH_STRATEGIES = []AuthStrategyType{
AuthStrategy.AWS_IAM_AUTH,
}
func IsAuthMethodValid(authMethod string) (isValid bool, strategy AuthStrategyType) {
func IsAuthMethodValid(authMethod string, allowUserAuth bool) (isValid bool, strategy AuthStrategyType) {
if authMethod == "user" {
if authMethod == "user" && allowUserAuth {
return true, ""
}