MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / GetDeviceFlow

Method GetDeviceFlow

internal/auth/oauth2_github.go:114–125  ·  view source on GitHub ↗
(ctx context.Context, meta metadata.ConnectionAuthPendingMetadata)

Source from the content-addressed store, hash-verified

112}
113
114func (p *gitHubProvider) GetDeviceFlow(ctx context.Context, meta metadata.ConnectionAuthPendingMetadata) (OAuth2DeviceFlow, error) {
115 flow, err := p.createFlow(meta)
116 if err != nil {
117 return nil, err
118 }
119
120 return &gitHubDeviceFlow{
121 meta: meta,
122 gitHubFlow: flow,
123 interval: 10 * time.Second,
124 }, nil
125}
126
127func (p *gitHubProvider) SupportsAuthorizationCodeFlow() bool {
128 return true

Callers

nothing calls this directly

Calls 1

createFlowMethod · 0.95

Tested by

no test coverage detected