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

Function normalizeAuthKind

sdk/cliproxy/auth/classification.go:76–85  ·  view source on GitHub ↗
(kind string)

Source from the content-addressed store, hash-verified

74}
75
76func normalizeAuthKind(kind string) string {
77 switch strings.ToLower(strings.TrimSpace(kind)) {
78 case AuthKindAPIKey, "api_key", "api-key":
79 return AuthKindAPIKey
80 case AuthKindOAuth, "oauth2":
81 return AuthKindOAuth
82 default:
83 return ""
84 }
85}
86
87func normalizeAuthSourceKind(source string) string {
88 switch strings.ToLower(strings.TrimSpace(source)) {

Callers 1

AuthKindMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected