oauth2

package
v2.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 7 Imported by: 0

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/Kansuler/gcp-jwt-go/jwtmiddleware

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL