cognito

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddCognitoUserToGroup

func AddCognitoUserToGroup(username string, pool string, group string) error

func DeleteCognitoUser

func DeleteCognitoUser(userPoolId string, username string) error

Deletes a user from its cognito user pool

func DetermineAuthType

func DetermineAuthType(identity events.APIGatewayRequestIdentity) *string

func GetAuthUsername

func GetAuthUsername(identity events.APIGatewayRequestIdentity) string

func GetCognitoUser

func GetCognitoUser(pool string, username string) (*cognitoidentityprovider.AdminGetUserOutput, error)

func RandomDigitString

func RandomDigitString(len int) string

Create a pseudorandom string of digits (0-9) with specified length

func RandomPassword

func RandomPassword() string

Create a pseudorandom password consisting of two three-letter words and two digits

func RemoveCognitoUserFromGroup

func RemoveCognitoUserFromGroup(username string, pool string, group string) error

func SetUserPassword

func SetUserPassword(pool string, username string, password string) (*cognitoidentityprovider.AdminSetUserPasswordOutput, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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