MCPcopy
hub / github.com/modelcontextprotocol/registry / Provider

Interface Provider

cmd/publisher/auth/interface.go:6–17  ·  view source on GitHub ↗

Provider defines the interface for authentication mechanisms

Source from the content-addressed store, hash-verified

4
5// Provider defines the interface for authentication mechanisms
6type Provider interface {
7 // GetToken retrieves or generates an authentication token
8 // It returns the token string and any error encountered
9 GetToken(ctx context.Context) (string, error)
10
11 // Login performs the authentication flow
12 // This might involve user interaction, device flows, etc.
13 Login(ctx context.Context) error
14
15 // Name returns the name of the authentication provider
16 Name() string
17}

Callers 10

LoginCommandFunction · 0.65
LoginCommandFunction · 0.65
CreateBackupStorageMethod · 0.65
DeployK8upFunction · 0.65
SetupIngressControllerFunction · 0.65
SetupCertManagerFunction · 0.65
DeployPostgresDatabasesFunction · 0.65
DeployMonitoringStackFunction · 0.65
deployVictoriaLogsFunction · 0.65

Implementers 3

GitHubOIDCProvidercmd/publisher/auth/github-oidc.go
NoneProvidercmd/publisher/auth/none.go
GitHubATProvidercmd/publisher/auth/github-at.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…