userpool

package
v0.0.0-...-354f3a1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminCreateUserInput

type AdminCreateUserInput struct {
	UserName string
	Email    string
}

* AdminCreateUser Input/Output *

func (*AdminCreateUserInput) Validate

func (in *AdminCreateUserInput) Validate() error

type AdminCreateUserOutput

type AdminCreateUserOutput struct {
	UserName string
	Email    string
	Sub      string
}

* AdminCreateUser Input/Output *

type AdminGetUserInput

type AdminGetUserInput struct {
	Email string
}

* AdminGetUser Input/Output *

type AdminGetUserOutput

type AdminGetUserOutput struct {
	Sub           string
	EmailVerified string
	FamilyName    string
	GivenName     string
	Email         string
}

* AdminGetUser Input/Output *

func (*AdminGetUserOutput) IsEmailVerified

func (i *AdminGetUserOutput) IsEmailVerified() bool

type AdminUpdateUserInput

type AdminUpdateUserInput struct {
	UserAttribute UpdateAttribute
}

* AdminUpdateUser Input *

type AttributeName

type AttributeName string
const (
	AttributeNameSub           AttributeName = "sub"
	AttributeNameEmailVerified AttributeName = "email_verified"
	AttributeNameEmail         AttributeName = "email"
	AttributeNameFamilyName    AttributeName = "family_name"
	AttributeNameGivenName     AttributeName = "given_name"
)

func (AttributeName) String

func (n AttributeName) String() string

type Client

type Client interface {
	SignUp(ctx context.Context, input SignUpInput) (*SignUpOutput, error)
	ConfirmSignUp(ctx context.Context, input ConfirmSignUpInput) error
	InitiateAuth(ctx context.Context, input InitiateAuthInput) (*InitiateAuthOutput, error)
	ResendConfirmationCode(ctx context.Context, input ResendConfirmationCodeInput) error
	AdminCreateUser(ctx context.Context, input AdminCreateUserInput) (*AdminCreateUserOutput, error)
	AdminUpdateUser(ctx context.Context, input AdminUpdateUserInput) error
	AdminGetUser(ctx context.Context, input AdminGetUserInput) (*AdminGetUserOutput, error)
}

* Client *

type ConfirmSignUpInput

type ConfirmSignUpInput struct {
	Email            string
	ConfirmationCode string
}

* ConfirmSignUp Input/Output *

type InitiateAuthInput

type InitiateAuthInput struct {
	Email    string
	Password string
}

* InitiateAuth Input/Output *

type InitiateAuthOutput

type InitiateAuthOutput struct {
	IDToken      *string
	AccessToken  *string
	RefreshToken *string
}

* InitiateAuth Input/Output *

type ResendConfirmationCodeInput

type ResendConfirmationCodeInput struct {
	Email string
}

* ResendConfirmationCode Input/Output *

type SignUpInput

type SignUpInput struct {
	Email      string
	Password   string
	FamilyName string
	GivenName  string
}

* SignUp Input/Output *

type SignUpOutput

type SignUpOutput struct {
	Sub string
}

* SignUp Input/Output *

type UpdateAttribute

type UpdateAttribute struct {
	EmailVerified UpdateAttributeValue
	Email         UpdateAttributeValue
	FamilyName    UpdateAttributeValue
	GivenName     UpdateAttributeValue
}

func (*UpdateAttribute) ToRows

type UpdateAttributeValue

type UpdateAttributeValue struct {
	Value      *string
	NullUpdate bool
}

func (*UpdateAttributeValue) IsUpdate

func (v *UpdateAttributeValue) IsUpdate() bool

func (*UpdateAttributeValue) ToRow

type UpdateAttributeValues

type UpdateAttributeValues []*UpdateAttributeValue

Jump to

Keyboard shortcuts

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