MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / mockOAuthHandler

Struct mockOAuthHandler

mcp/streamable_client_test.go:916–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914}
915
916type mockOAuthHandler struct {
917 token *oauth2.Token
918 authorizeErr error
919 authorizeCalled bool
920}
921
922func (h *mockOAuthHandler) TokenSource(ctx context.Context) (oauth2.TokenSource, error) {
923 if h.token == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected