{"record":{"id":"9a460e12e833169d","repo":"fatedier/frp","slug":"invalid-auth-additional-scopes-optional-values-ar-9a460e","errorCode":null,"errorMessage":"invalid auth additional scopes, optional values are %v","messagePattern":"invalid auth additional scopes, optional values are (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/config/v1/validation/server.go","lineNumber":35,"sourceCode":"import (\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\"))\n\terrs = AppendError(errs, ValidatePort(c.VhostHTTPPort, \"vhostHTTPPort\"))\n\terrs = AppendError(errs, ValidatePort(c.VhostHTTPSPort, \"vhostHTTPSPort\"))\n\terrs = AppendError(errs, ValidatePort(c.TCPMuxHTTPConnectPort, \"tcpMuxHTTPConnectPort\"))","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/fatedier/frp/blob/6c8a8d0a97d03b44e9528d30b30c70cb9d61b405/pkg/config/v1/validation/server.go#L17-L53","documentation":"Error \"invalid auth additional scopes, optional values are %v\" thrown in fatedier/frp.","triggerScenarios":"Raised by ValidateServerConfig in pkg/config/v1/validation/server.go when auth.additionalScopes contains a scope outside the supported set.","commonSituations":"An unknown scope name in auth.additionalScopes. Fix by keeping only the scopes listed in the error message.","solutions":["Keep only the supported values in auth.additionalScopes, as listed in the error message.","Remove the unsupported scope from auth.additionalScopes in the server configuration."],"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-15T22:17:37.221Z"}