google

package module
v0.0.0-...-e0952ef Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GCP_OIDC_STS_ENDPOINT         = "https://sts.googleapis.com/v1beta/token"
	GCP_OIDC_CLOUD_PLATFORM_SCOPE = "https://www.googleapis.com/auth/cloud-platform"
)

Variables

This section is empty.

Functions

func OIDCFederatedTokenSource

func OIDCFederatedTokenSource(tokenConfig *OIDCFederatedTokenConfig) (oauth2.TokenSource, error)

Types

type OIDCFederatedTokenConfig

type OIDCFederatedTokenConfig struct {
	SourceTokenSource    oauth2.TokenSource
	Scope                string
	TargetResource       string
	TargetServiceAccount string
	UseIAMToken          bool
}

Jump to

Keyboard shortcuts

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