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

Struct Config

coderd/promoauth/oauth2.go:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196type Config struct {
197 // Name is a human friendly name to identify the oauth2 provider. This should be
198 // deterministic from restart to restart, as it is going to be used as a label in
199 // prometheus metrics.
200 name string
201 underlying OAuth2Config
202 metrics *metrics
203 // interceptors are called after every request made by the oauth2 client.
204 interceptors []func(resp *http.Response, err error)
205}
206
207func (c *Config) Do(ctx context.Context, source Oauth2Source, req *http.Request) (*http.Response, error) {
208 cli := c.oauthHTTPClient(ctx, source)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected