auth

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetadataNotProvidedError            = status.Error(codes.Unauthenticated, "metadata is not provided")
	AuthorizationHeaderNotProvidedError = status.Error(codes.Unauthenticated, "authorization header is not provided")
)

Functions

This section is empty.

Types

type Interceptor

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

Interceptor is the interceptor for the authentication

func NewInterceptor

func NewInterceptor(validator commonvalidator.Validator, methodsToIntercept map[string]bool) *Interceptor

NewInterceptor creates a new authentication interceptor

func (*Interceptor) UnaryServerInterceptor

func (i *Interceptor) UnaryServerInterceptor() grpc.UnaryServerInterceptor

UnaryServerInterceptor return the interceptor function

Jump to

Keyboard shortcuts

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