cognito

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) ConfirmSignUp

func (client *Client) ConfirmSignUp(username, confirmationCode, poolClientID string) error

func (*Client) CreatePool

func (client *Client) CreatePool(name string) (*cognitoidentityprovider.CreateUserPoolOutput, error)

func (*Client) CreatePoolClient

func (client *Client) CreatePoolClient(name, poolID string) (*cognitoidentityprovider.CreateUserPoolClientOutput, error)

func (*Client) DeletePool

func (client *Client) DeletePool(poolID string) error

func (*Client) DeletePoolClient

func (client *Client) DeletePoolClient(poolID, clientID string) error

func (*Client) DeleteUser

func (client *Client) DeleteUser(accessToken string) error

func (*Client) DescribePool

func (client *Client) DescribePool(poolID string) (string, error)

func (*Client) SignIn

func (client *Client) SignIn(username, password, poolClientID string) (*cognitoidentityprovider.AuthenticationResultType, error)

func (*Client) SignUp

func (client *Client) SignUp(username, password, poolClientID string) (*cognitoidentityprovider.SignUpOutput, error)

type IClient

type IClient interface {
	SignIn(username, password, poolClientID string) (*cognitoidentityprovider.AuthenticationResultType, error)
	SignUp(username, password, poolClientID string) (*cognitoidentityprovider.SignUpOutput, error)
	ConfirmSignUp(username, confirmationCode, poolClientID string) error
	DeleteUser(accessToken string) error
	CreatePool(name string) (*cognitoidentityprovider.CreateUserPoolOutput, error)
	CreatePoolClient(name, poolID string) (*cognitoidentityprovider.CreateUserPoolClientOutput, error)
	DescribePool(poolID string) (string, error)
	DeletePool(poolID string) error
	DeletePoolClient(poolID, clientID string) error
}

func New

func New(config *config.AWS) (IClient, error)

Jump to

Keyboard shortcuts

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