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