Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update auth.go

Daniel Hougaard44a898fb15ae
diff --git a/cli/packages/util/auth.go b/cli/packages/util/auth.go
index 75ffe93442..d27bbc2c8a 100644
--- a/cli/packages/util/auth.go
+++ b/cli/packages/util/auth.go
@@ -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, ""
}