(ctx context.Context, meta metadata.ConnectionAuthPendingMetadata)
| 112 | } |
| 113 | |
| 114 | func (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 | |
| 127 | func (p *gitHubProvider) SupportsAuthorizationCodeFlow() bool { |
| 128 | return true |
nothing calls this directly
no test coverage detected