Documentation ¶
Index ¶
- Variables
- func AddCognitoUserToGroup(username string, pool string, group string) error
- func ConfirmPasswordReset(appClientID string, username string, password string, confirmationCode string) (*cognitoidentityprovider.ConfirmForgotPasswordOutput, error)
- func DeleteCognitoUser(userPoolId string, username string) error
- func DetermineAuthType(identity events.APIGatewayRequestIdentity) *string
- func GetAuthUsername(identity events.APIGatewayRequestIdentity) string
- func GetCognitoUser(pool string, username string) (*cognitoidentityprovider.AdminGetUserOutput, error)
- func RandomDigitString(len int) string
- func RandomPassword() string
- func RemoveCognitoUserFromGroup(username string, pool string, group string) error
- func ResetUserPassword(pool string, username string) (*cognitoidentityprovider.AdminResetUserPasswordOutput, error)
- func SetUserPassword(pool string, username string, password string) (*cognitoidentityprovider.AdminSetUserPasswordOutput, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CognitoService *cognitoidentityprovider.CognitoIdentityProvider
Functions ¶
func AddCognitoUserToGroup ¶
func ConfirmPasswordReset ¶ added in v1.94.0
func ConfirmPasswordReset(appClientID string, username string, password string, confirmationCode string) (*cognitoidentityprovider.ConfirmForgotPasswordOutput, error)
func DeleteCognitoUser ¶
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 ¶
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 ResetUserPassword ¶
func ResetUserPassword(pool string, username string) (*cognitoidentityprovider.AdminResetUserPasswordOutput, error)
func SetUserPassword ¶
func SetUserPassword(pool string, username string, password string) (*cognitoidentityprovider.AdminSetUserPasswordOutput, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.