ksatokensource

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractIssuer

func ExtractIssuer(jwtToken string) (string, error)

ExtractIsssuer will extract the issuer field from the provided JWT token

func ExtractJWTString

func ExtractJWTString(jwtToken string, key string) (string, error)

ExtractJWTString extracts the named field from the provided JWT token.

func New

func New(stsService *stsv1.Service, ksaToken oauth2.TokenSource, workloadIdentityPool, identityProvider string) oauth2.TokenSource

New returns an oauth2.TokenSource that exchanges the KSA token from ksaToken for a GCP access token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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