tokensource

package
v0.0.0-...-c098392 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SmartAccessTokenSource

func SmartAccessTokenSource(ctx context.Context, options ...adcplus.Option) (oauth2.TokenSource, error)

SmartAccessTokenSource generate oauth2.TokenSource which generates access token and supports CLOUDSDK_AUTH_IMPERSONATE_SERVICE_ACCOUNT environment variable.

func SmartIDTokenSource

func SmartIDTokenSource(ctx context.Context, audience string, options ...adcplus.Option) (oauth2.TokenSource, error)

SmartIDTokenSource generate oauth2.TokenSource which generates ID token and supports CLOUDSDK_AUTH_IMPERSONATE_SERVICE_ACCOUNT environment variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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