oidc

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSOIDCCredsProvider

type AWSOIDCCredsProvider struct {
	*credentials.Credentials
	// contains filtered or unexported fields
}

AWSOIDCCredsProvider providers OIDC tokens and aws:STS credentials

func NewAwsOIDCCredsProvider

func NewAwsOIDCCredsProvider(
	ctx context.Context,
	svc stsiface.STSAPI,
	conf *AwsOIDCCredsProviderConfig,
) (*AWSOIDCCredsProvider, error)

NewAWSOIDCCredsProvider returns an AWS credential provider using OIDC.

func (*AWSOIDCCredsProvider) FetchOIDCToken

func (a *AWSOIDCCredsProvider) FetchOIDCToken(ctx context.Context) (*client.Token, error)

FetchOIDCToken will fetch an oidc token

type AwsOIDCCredsProviderConfig

type AwsOIDCCredsProviderConfig struct {
	AWSRoleARN    string
	OIDCClientID  string
	OIDCIssuerURL string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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