Help us shape the future of Go! Take the 2026 Go Developer Survey

cognito

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 11 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

	// optional token duration override (seconds); if 0, defaults to 86400 (1 day)
	TokenDurationSeconds int64
	// 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 cognito 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