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

Struct noopAuth

core/openapi/auth.go:67–67  ·  view source on GitHub ↗

noopAuth is the auth provider used when no auth is configured. It exists primarily so the resolver doesn't need to nil-check provider references on the hot path.

Source from the content-addressed store, hash-verified

65// exists primarily so the resolver doesn't need to nil-check provider
66// references on the hot path.
67type noopAuth struct{}
68
69func (noopAuth) Apply(context.Context, *http.Request, http.Header) error { return nil }
70func (noopAuth) OnUnauthorized(context.Context) error { return nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected