MCPcopy Create free account
hub / github.com/prometheus/common / oauth2TokenSourceConfig

Interface oauth2TokenSourceConfig

config/http_config.go:978–980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

976}
977
978type oauth2TokenSourceConfig interface {
979 TokenSource(ctx context.Context) oauth2.TokenSource
980}
981
982func (rt *oauth2RoundTripper) newOauth2TokenSource(req *http.Request, clientCredential string) (client *http.Client, source oauth2.TokenSource, err error) {
983 tlsConfig, err := NewTLSConfig(&rt.config.TLSConfig, WithSecretManager(rt.opts.secretManager))

Callers 1

newOauth2TokenSourceMethod · 0.95

Implementers 1

JwtGrantTypeConfigconfig/oauth_assertion.go

Calls

no outgoing calls

Tested by

no test coverage detected