MCPcopy Create free account
hub / github.com/apache/pulsar-client-go / GetCode

Method GetCode

oauth2/device_code_flow.go:44–44  ·  view source on GitHub ↗
(audience string, additionalScopes ...string)

Source from the content-addressed store, hash-verified

42// AuthorizationCodeProvider abstracts getting an authorization code
43type DeviceCodeProvider interface {
44 GetCode(audience string, additionalScopes ...string) (*DeviceCodeResult, error)
45}
46
47// DeviceTokenExchanger abstracts exchanging for tokens

Callers 1

AuthorizeMethod · 0.65

Implementers 2

LocalDeviceCodeProvideroauth2/device_code_provider.go
MockDeviceCodeProvideroauth2/device_code_flow_test.go

Calls

no outgoing calls

Tested by

no test coverage detected