These helpers can be used to inject dynamic tokens into requests.
TokenAuthTransport is a http.RoundTripper, with optional custom rewriting capability
TokenAuthEditor(oauth2.TokenSource) returns a func(context.Context, *http.Request) error to be used as a RequestEditorFn in openapi clients.
These helpers can be used to inject dynamic tokens into requests.
TokenAuthTransport
is ahttp.RoundTripper
, with optional custom rewriting capabilityTokenAuthEditor(oauth2.TokenSource)
returns afunc(context.Context, *http.Request) error
to be used as aRequestEditorFn
in openapi clients.