auth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIToken

type APIToken struct {
	AccessKey string
	SecretKey string
}

APIToken stax api token used for authentication.

func (*APIToken) IsValid added in v0.0.3

func (a *APIToken) IsValid() bool

type AuthResponse

type AuthResponse struct {
	AWSConfig aws.Config
	Tokens    *cognito.IDPTokens
}

AuthResponse authentication response containing the aws sdk configuration loaded with credentials.

func AuthAPIToken

func AuthAPIToken(ctx context.Context, client client.ClientWithResponsesInterface, apiToken *APIToken) (*AuthResponse, error)

type CredentialsRetrieverFn

type CredentialsRetrieverFn func(ctx context.Context) (aws.Credentials, error)

func AWSCredentialsRetrieverFn

func AWSCredentialsRetrieverFn(awscfg aws.Config) CredentialsRetrieverFn

Directories

Path Synopsis
This package provides a function which authenticates a user against Cognito and returns the AWS config and IDP tokens.
This package provides a function which authenticates a user against Cognito and returns the AWS config and IDP tokens.
This package provides a function which gets AWS credentials from Cognito Identity using the provided ID token
This package provides a function which gets AWS credentials from Cognito Identity using the provided ID token

Jump to

Keyboard shortcuts

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