cognito

package
v0.18.2-0...-57123b4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cognito contains a directory implementation for cognito.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(cfg *config)

func WithAccessKeyID

func WithAccessKeyID(accessKeyID string) Option

WithAccessKeyID sets the access key id config option.

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) Option

WithHTTPClient sets the http client config option.

func WithLogger

func WithLogger(logger zerolog.Logger) Option

WithLogger sets the logger config option.

func WithRegion

func WithRegion(region string) Option

WithRegion sets the region config option.

func WithSecretAccessKey

func WithSecretAccessKey(secretAccessKey string) Option

WithSecretAccessKey sets the secret access key config option.

func WithSessionToken

func WithSessionToken(sessionToken string) Option

WithSessionToken sets the session token config option.

func WithUserPoolID

func WithUserPoolID(userPoolID string) Option

WithUserPoolID sets the user pool ID config option.

type Provider

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

The Provider retrieves users and groups from cognito.

func New

func New(options ...Option) *Provider

func (*Provider) GetDirectory

func (p *Provider) GetDirectory(ctx context.Context) ([]directory.Group, []directory.User, error)

Jump to

Keyboard shortcuts

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