debug: add option to disable auth

This commit is contained in:
yusing
2025-02-20 17:45:47 +08:00
parent c66b17583f
commit dd6af9b8e0
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ func GetDefaultAuth() Provider {
}
func IsEnabled() bool {
return common.APIJWTSecret != nil || IsOIDCEnabled()
return !common.DebugDisableAuth && (common.APIJWTSecret != nil || IsOIDCEnabled())
}
func IsOIDCEnabled() bool {