{"record":{"id":"1bd66fc6a4f224c2","repo":"fatedier/frp","slug":"invalid-auth-method-optional-values-are-v-1bd66f","errorCode":null,"errorMessage":"invalid auth method, optional values are %v","messagePattern":"invalid auth method, optional values are (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/config/v1/validation/server.go","lineNumber":32,"sourceCode":"\npackage validation\n\nimport (\n\t\"fmt\"\n\t\"slices\"\n\n\t\"github.com/samber/lo\"\n\n\tv1 \"github.com/fatedier/frp/pkg/config/v1\"\n)\n\nfunc (v *ConfigValidator) ValidateServerConfig(c *v1.ServerConfig) (Warning, error) {\n\tvar (\n\t\twarnings Warning\n\t\terrs     error\n\t)\n\tif !slices.Contains(SupportedAuthMethods, c.Auth.Method) {\n\t\terrs = AppendError(errs, fmt.Errorf(\"invalid auth method, optional values are %v\", SupportedAuthMethods))\n\t}\n\tif !lo.Every(SupportedAuthAdditionalScopes, c.Auth.AdditionalScopes) {\n\t\terrs = AppendError(errs, fmt.Errorf(\"invalid auth additional scopes, optional values are %v\", SupportedAuthAdditionalScopes))\n\t}\n\n\terrs = AppendError(errs, v.validateAuthTokenSource(c.Auth.Token, c.Auth.TokenSource))\n\n\tif err := validateLogConfig(&c.Log); err != nil {\n\t\terrs = AppendError(errs, err)\n\t}\n\n\tif err := validateWebServerConfig(&c.WebServer); err != nil {\n\t\terrs = AppendError(errs, err)\n\t}\n\n\terrs = AppendError(errs, ValidatePort(c.BindPort, \"bindPort\"))\n\terrs = AppendError(errs, ValidatePort(c.KCPBindPort, \"kcpBindPort\"))\n\terrs = AppendError(errs, ValidatePort(c.QUICBindPort, \"quicBindPort\"))","sourceCodeStart":14,"sourceCodeEnd":50,"githubUrl":"https://github.com/fatedier/frp/blob/6c8a8d0a97d03b44e9528d30b30c70cb9d61b405/pkg/config/v1/validation/server.go#L14-L50","documentation":"Error \"invalid auth method, optional values are %v\" thrown in fatedier/frp.","triggerScenarios":"Raised by ValidateServerConfig in pkg/config/v1/validation/server.go when auth.method is not one of the supported authentication methods (token or oidc).","commonSituations":"Typo or unsupported value in auth.method of the server config. Fix by setting auth.method to one of the values listed in the error message.","solutions":["Set auth.method to one of the supported values listed in the error message (for example 'token' or 'oidc').","Remove auth.method to use the default authentication method."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c8a8d0a97d03b44e9528d30b30c70cb9d61b405","analyzedAt":"2026-08-15T06:53:27.215Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}