cognito_service

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUserPoolClientName = "Nitric"

For each User Pool (tenant), a "Sign-Up Client" is used to sign up users with self-assigned password. this refers to the default Nitric Sign-Up Client for each User Pool.

Variables

This section is empty.

Functions

func New

func New() (sdk.UserService, error)

New - Creates a new instance of the Cognito auth plugin

func NewWithClient

NewWithClient - Creates a new instance of the Cognito auth plugin with given Cognito Client

Types

type CognitoAuthService

type CognitoAuthService struct {
	sdk.UnimplementedAuthPlugin
	// contains filtered or unexported fields
}

CognitoAuthService - Cognito implementation of the Nitric Auth plugin interface

func (*CognitoAuthService) Create

func (s *CognitoAuthService) Create(tenant string, id string, email string, password string) error

CreateUser - Creates a new user in AWS cognito

Jump to

Keyboard shortcuts

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