MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / readAuthFile

Method readAuthFile

sdk/auth/filestore.go:336–342  ·  view source on GitHub ↗
(path, baseDir string)

Source from the content-addressed store, hash-verified

334}
335
336func (s *FileTokenStore) readAuthFile(path, baseDir string) (*cliproxyauth.Auth, error) {
337 auths, errReadAuths := s.readAuthFiles(path, baseDir)
338 if errReadAuths != nil || len(auths) == 0 {
339 return nil, errReadAuths
340 }
341 return auths[0], nil
342}
343
344func parsePluginAuthFile(parser PluginAuthParser, req pluginapi.AuthParseRequest) ([]*cliproxyauth.Auth, bool, error) {
345 if parser == nil {

Callers

nothing calls this directly

Calls 1

readAuthFilesMethod · 0.95

Tested by

no test coverage detected