TokenSource returns a JWT TokenSource using the configuration in c and the HTTP client from the provided context.
(ctx context.Context)
| 86 | // TokenSource returns a JWT TokenSource using the configuration |
| 87 | // in c and the HTTP client from the provided context. |
| 88 | func (c *JwtGrantTypeConfig) TokenSource(ctx context.Context) oauth2.TokenSource { |
| 89 | return oauth2.ReuseTokenSource(nil, jwtSource{ctx, c}) |
| 90 | } |
| 91 | |
| 92 | // Client returns an HTTP client wrapping the context's |
| 93 | // HTTP transport and adding Authorization headers with tokens |