Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
AuthInterceptor is a grpc interceptor for authentication and authorization
func NewAuthInterceptor ¶
func NewAuthInterceptor( jwtManager *manager.JWT, accessibleRoles map[string]map[string]bool, guestRole string, ) *AuthInterceptor
NewAuthInterceptor returns a new auth interceptor
func (*AuthInterceptor) Stream ¶
func (interceptor *AuthInterceptor) Stream() grpc.StreamServerInterceptor
Stream returns a server interceptor function to authenticate and authorize stream RPC
func (*AuthInterceptor) Unary ¶
func (interceptor *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
Unary returns a server interceptor function to authenticate and authorize unary RPC
Click to show internal directories.
Click to hide internal directories.