cognito

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cognito

type Cognito struct {
	// define the AWS region that Cognito is located at
	AwsRegion awsregion.AWSRegion

	// custom http2 client options
	HttpOptions *awshttp2.HttpClientSettings
	// contains filtered or unexported fields
}

Cognito struct encapsulates the AWS Cognito access functionality

func (*Cognito) Connect

func (s *Cognito) Connect(parentSegment ...*xray.XRayParentSegment) (err error)

Connect will establish a connection to the Cognito service

func (*Cognito) Disconnect

func (s *Cognito) Disconnect()

Disconnect will clear sqs client

func (*Cognito) NewOpenIdTokenForDeveloperIdentity

func (s *Cognito) NewOpenIdTokenForDeveloperIdentity(identityPoolId, developerProviderID, developerProviderName string) (identityId, token string, err error)

func (*Cognito) RefreshOpenIdTokenForDeveloperIdentity

func (s *Cognito) RefreshOpenIdTokenForDeveloperIdentity(identityPoolId, developerProviderID, developerProviderName, existingIdentityId string) (identityId, token string, err error)

func (*Cognito) UpdateParentSegment

func (s *Cognito) UpdateParentSegment(parentSegment *xray.XRayParentSegment)

UpdateParentSegment updates this struct's xray parent segment, if no parent segment, set nil

Jump to

Keyboard shortcuts

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