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
Click to show internal directories.
Click to hide internal directories.