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

Struct jwtSource

config/oauth_assertion.go:103–106  ·  view source on GitHub ↗

jwtSource is a source that always does a signed JWT request for a token. It should typically be wrapped with a reuseTokenSource.

Source from the content-addressed store, hash-verified

101// jwtSource is a source that always does a signed JWT request for a token.
102// It should typically be wrapped with a reuseTokenSource.
103type jwtSource struct {
104 ctx context.Context
105 conf *JwtGrantTypeConfig
106}
107
108func (js jwtSource) Token() (*oauth2.Token, error) {
109 pk, err := jwt.ParseRSAPrivateKeyFromPEM(js.conf.PrivateKey)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected