{"record":{"id":"469ec27635fb718b","repo":"projectdiscovery/nuclei","slug":"no-secrets-in-given-provider","errorCode":null,"errorMessage":"no secrets in given provider","messagePattern":"no secrets in given provider","errorType":"validation","errorClass":"ErrNoSecrets","httpStatus":null,"severity":"error","filePath":"pkg/authprovider/interface.go","lineNumber":12,"sourceCode":"package authprovider\n\nimport (\n\t\"fmt\"\n\t\"net/url\"\n\n\t\"github.com/projectdiscovery/nuclei/v3/pkg/authprovider/authx\"\n\turlutil \"github.com/projectdiscovery/utils/url\"\n)\n\nvar (\n\tErrNoSecrets = fmt.Errorf(\"no secrets in given provider\")\n)\n\nvar (\n\t_ AuthProvider = &FileAuthProvider{}\n)\n\n// AuthProvider is an interface for auth providers\n// It implements a data structure suitable for quick lookup and retrieval\n// of auth strategies\ntype AuthProvider interface {\n\t// LookupAddr looks up a given domain/address and returns appropriate auth strategy\n\t// for it (accepted inputs are scanme.sh or scanme.sh:443)\n\tLookupAddr(string) []authx.AuthStrategy\n\t// LookupURL looks up a given URL and returns appropriate auth strategy\n\t// it accepts a valid url struct and returns the auth strategy\n\tLookupURL(*url.URL) []authx.AuthStrategy\n\t// LookupURLX looks up a given URL and returns appropriate auth strategy\n\t// it accepts pd url struct (i.e urlutil.URL) and returns the auth strategy","sourceCodeStart":1,"sourceCodeEnd":30,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/authprovider/interface.go#L1-L30","documentation":"Error \"no secrets in given provider\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/authprovider/interface.go:12 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}