Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JWTAccessTokenSource ¶
func JWTAccessTokenSource(ctx context.Context, config *gcpjwt.IAMConfig, audience string) (oauth2.TokenSource, error)
JWTAccessTokenSource returns a TokenSource that uses the IAM API to sign tokens. This is meant as a helper for situations in which you want to authenticate calls using the configured service account and does not actually perform an Oauth flow. This can be useful in service to service communications for user-defined APIs. The audience is typically a URL that specifies the scope of the credentials or the API endpoint.
Complimentary to https://github.com/someone1/gcp-jwt-go/jwtmiddleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.