MCPcopy Create free account
hub / github.com/coder/coder / staticOIDCSource

Struct staticOIDCSource

coderd/x/chatd/mcpclient/mcpclient_test.go:687–690  ·  view source on GitHub ↗

staticOIDCSource implements mcpclient.UserOIDCTokenSource for tests without requiring a real OIDC provider or database round-trip.

Source from the content-addressed store, hash-verified

685// staticOIDCSource implements mcpclient.UserOIDCTokenSource for tests
686// without requiring a real OIDC provider or database round-trip.
687type staticOIDCSource struct {
688 token string
689 err error
690}
691
692func (s staticOIDCSource) OIDCAccessToken(_ context.Context, _ uuid.UUID) (string, error) {
693 return s.token, s.err

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected