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

Method New

coderd/promoauth/oauth2.go:150–156  ·  view source on GitHub ↗
(name string, under OAuth2Config)

Source from the content-addressed store, hash-verified

148}
149
150func (f *Factory) New(name string, under OAuth2Config) *Config {
151 return &Config{
152 name: name,
153 underlying: under,
154 metrics: f.metrics,
155 }
156}
157
158// NewGithub returns a new instrumented oauth2 config for github. It tracks
159// rate limits as well as just the external request counts.

Callers 5

ExternalAuthConfigMethod · 0.95
NewGithubMethod · 0.95
TestInstrumentFunction · 0.95
TestValidateTokenFunction · 0.95
setupOauth2TestFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestInstrumentFunction · 0.76
TestValidateTokenFunction · 0.76
setupOauth2TestFunction · 0.76