MCPcopy
hub / github.com/github/github-mcp-server / PromptURL

Method PromptURL

internal/oauth/prompter.go:49–49  ·  view source on GitHub ↗

PromptURL securely presents an authorization URL to the user and blocks until the user acknowledges, declines, or ctx is done. Returning nil means the prompt was shown (not that authorization completed); the caller waits for the OAuth flow itself to finish. It returns ErrPromptDeclined if the user d

(ctx context.Context, p Prompt)

Source from the content-addressed store, hash-verified

47 // user declines or cancels, or ErrPromptUnavailable if the prompt could not
48 // be delivered.
49 PromptURL(ctx context.Context, p Prompt) error
50
51 // CanPromptForm reports whether the client supports form elicitation, used
52 // to display a device code when URL elicitation is unavailable.

Callers 4

beginPKCEMethod · 0.65
beginDeviceMethod · 0.65

Implementers 2

fakePrompterinternal/oauth/testutil_test.go
sessionPrompterinternal/ghmcp/oauth.go

Calls

no outgoing calls