MCPcopy Index your code
hub / github.com/github/github-mcp-server / Authenticate

Method Authenticate

internal/ghmcp/oauth.go:93–93  ·  view source on GitHub ↗
(ctx context.Context, prompter oauth.Prompter)

Source from the content-addressed store, hash-verified

91type oauthAuthenticator interface {
92 HasToken() bool
93 Authenticate(ctx context.Context, prompter oauth.Prompter) (*oauth.Outcome, error)
94}
95
96// createOAuthMiddleware returns receiving middleware that authorizes the session

Implementers 2

Managerinternal/oauth/manager.go
fakeAuthenticatorinternal/ghmcp/oauth_test.go

Calls

no outgoing calls