MCPcopy Index your code
hub / github.com/docker/docker-agent / NewKeyringTokenStore

Function NewKeyringTokenStore

pkg/tools/mcp/tokenstore.go:67–69  ·  view source on GitHub ↗

NewKeyringTokenStore returns the process-wide persistent OAuth token store. The name is kept for compatibility; without an optional keyring-backed store registered by pkg/tools/mcp/keyringstore, it falls back to an in-memory store.

()

Source from the content-addressed store, hash-verified

65// The name is kept for compatibility; without an optional keyring-backed store
66// registered by pkg/tools/mcp/keyringstore, it falls back to an in-memory store.
67func NewKeyringTokenStore() OAuthTokenStore {
68 return defaultTokenStore()
69}
70
71type OAuthToken struct {
72 AccessToken string `json:"access_token"`

Callers 4

ListOAuthTokensFunction · 0.70
RemoveOAuthTokenFunction · 0.70
newRemoteToolsetFunction · 0.70
PerformOAuthLoginFunction · 0.70

Calls 1

defaultTokenStoreFunction · 0.85

Tested by

no test coverage detected