mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 11:27:32 +00:00
Update auth.go
This commit is contained in:
@@ -27,9 +27,9 @@ var AVAILABLE_AUTH_STRATEGIES = []AuthStrategyType{
|
|||||||
AuthStrategy.AWS_IAM_AUTH,
|
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, ""
|
return true, ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user