MCPcopy Index your code
hub / github.com/coder/coder / Exchange

Method Exchange

coderd/promoauth/oauth2.go:41–41  ·  view source on GitHub ↗
(ctx context.Context, code string, opts ...oauth2.AuthCodeOption)

Source from the content-addressed store, hash-verified

39type OAuth2Config interface {
40 AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
41 Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
42 TokenSource(context.Context, *oauth2.Token) oauth2.TokenSource
43}
44

Callers 15

TestOAuth2ProviderRevokeFunction · 0.65
ExchangeMethod · 0.65
ExtractOAuth2Function · 0.65
ExchangeMethod · 0.65
TestAzureADPKIOIDCFunction · 0.65
TestSavedAzureADPKIOIDCFunction · 0.65
TestFakeIDPBasicFlowFunction · 0.65
TestIDPIssuerMismatchFunction · 0.65
ExchangeMethod · 0.65
TestGithubRateLimitsFunction · 0.65

Implementers 4

testOAuth2Providercoderd/httpmw/oauth2_test.go
Configcoderd/oauthpki/oidcpki.go
Configcoderd/promoauth/oauth2.go
OAuth2Configtestutil/oauth2.go

Calls

no outgoing calls

Tested by 7

TestOAuth2ProviderRevokeFunction · 0.52
TestAzureADPKIOIDCFunction · 0.52
TestSavedAzureADPKIOIDCFunction · 0.52
TestFakeIDPBasicFlowFunction · 0.52
TestIDPIssuerMismatchFunction · 0.52
TestGithubRateLimitsFunction · 0.52