cognito

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Client   *cred.Aws
	PoolID   string
	Resource *scy.Resource
	AuthFlow string
}

func (*Config) Init

func (c *Config) Init()

func (*Config) Validate

func (c *Config) Validate() error

type Service

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

Service represents cognito client

func New

func New(ctx context.Context, config *Config) (*Service, error)

New creates new cogito auth service

func (*Service) InitiateBasicAuth

func (s *Service) InitiateBasicAuth(username, password string) (*auth.Token, error)

func (*Service) VerifyIdentity

func (s *Service) VerifyIdentity(ctx context.Context, rawToken string) (*sjwt.Claims, error)

VerifyIdentity verifies identity token, it returns jwt claims

Jump to

Keyboard shortcuts

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