MCPcopy
hub / github.com/dosco/graphjin / Apply

Method Apply

core/openapi/auth.go:27–27  ·  view source on GitHub ↗
(ctx context.Context, req *http.Request, hdrIn http.Header)

Source from the content-addressed store, hash-verified

25// auth) implement this as a no-op.
26type AuthProvider interface {
27 Apply(ctx context.Context, req *http.Request, hdrIn http.Header) error
28 OnUnauthorized(ctx context.Context) error
29}
30

Callers 9

TestNoopAuthFunction · 0.95
TestBearerAuthStaticFunction · 0.95
TestBasicAuthFunction · 0.95
TestApiKeyAuthHeaderFunction · 0.95
TestApiKeyAuthQueryFunction · 0.95
TestTokenExchangeFunction · 0.95
doOnceMethod · 0.65

Implementers 7

recordingAuthcore/openapi/caller_test.go
oauth2CCAuthcore/openapi/auth_token.go
tokenExchangeAuthcore/openapi/auth_token.go
noopAuthcore/openapi/auth.go
bearerAuthcore/openapi/auth.go
basicAuthcore/openapi/auth.go
apiKeyAuthcore/openapi/auth.go

Calls

no outgoing calls

Tested by 8

TestNoopAuthFunction · 0.76
TestBearerAuthStaticFunction · 0.76
TestBasicAuthFunction · 0.76
TestApiKeyAuthHeaderFunction · 0.76
TestApiKeyAuthQueryFunction · 0.76
TestTokenExchangeFunction · 0.76