interceptor

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectName            = "/Hera.Service/"
	Heartbeat              = "Heartbeat"
	CreateUser             = "Create"
	UpdateUserMetadata     = "UpdateUserMetadata"
	UpdateUserProfile      = "UpdateProfile"
	UpdateUserContact      = "UpdateContactInfo"
	UpdateUserPassword     = "UpdatePassword"
	UpdateUserRole         = "UpdateRole"
	SearchForUser          = "Search"
	GetUser                = "Get"
	ListUsers              = "List"
	ValidateCredentials    = "ValidateCredentials"
	Login                  = "Login"
	ContinueWith           = "ContinueWith"
	DeleteUser             = "Delete"
	DeleteUsers            = "DeleteMany"
	CreateTokenPair        = "CreateTokenPair"
	ValidateToken          = "ValidateToken"
	BlockToken             = "BlockToken"
	RefreshToken           = "RefreshToken"
	GetTokens              = "GetTokens"
	PublicKeys             = "GetPublicKeys"
	SendVerificationEmail  = "SendVerificationEmail"
	VerifyEmail            = "VerifyEmail"
	SendVerificationText   = "SendVerificationText"
	VerifyPhone            = "VerifyPhone"
	SendResetPasswordEmail = "SendResetPasswordEmail"
	SendResetPasswordText  = "SendResetPasswordText"
	ResetPassword          = "ResetPassword"
	DeleteNamespace        = "DeleteNamespace"
	CreateNamespace        = "CreateNamespace"
	RegisterRsaKey         = "RegisterRsaKey"
	RemovePublicKey        = "RemovePublicKey"
	GetConfig              = "GetConfig"
	UpdateOidcProvider     = "UpdateOidcProvider"
	UpdateConfig           = "UpdateConfig"
	UpdateTextProvider     = "UpdateTextProvider"
	UpdateEmailProvider    = "UpdateEmailProvider"
	UpdateTemplate         = "UpdateTemplate"
	DeleteConfig           = "DeleteConfig"
	InitializeAuth         = "InitializeAuth"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interceptor

type Interceptor interface {
	WithAdminAuthenticateUnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
	WithPublicAuthenticateUnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
	WithLogUnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
	WithLogStreamInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
}

func New

func New(logger *zap.Logger, adminAuthenticator authenticator.AdminAuthenticator, publicAuthenticator authenticator.PublicAuthenticator, token token.Token, environment *environment.Environment) (Interceptor, error)

Jump to

Keyboard shortcuts

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