auth

package
v0.0.0-...-701c789 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient interface {
	GetUser(ctx context.Context, params *cognitoidentityprovider.GetUserInput, optFns ...func(*cognitoidentityprovider.Options)) (*cognitoidentityprovider.GetUserOutput, error)
}

type CognitoClient

type CognitoClient struct {
	AppClientId string
	UserPoolId  string
	*cip.Client
}

func InitAuth

func InitAuth(a *config.AppConfig, cfg awsConfig.Config) *CognitoClient

type Middleware

type Middleware struct {
	Cip AuthClient
}

func (*Middleware) InterceptorNew

func (am *Middleware) InterceptorNew() grpc.UnaryServerInterceptor

func (*Middleware) MakeHttpHandler

func (am *Middleware) MakeHttpHandler() func(http.Handler) http.Handler

Jump to

Keyboard shortcuts

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