Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamAuthInterceptor ¶
func StreamAuthInterceptor(keyFunc jwtv5.Keyfunc, opts ...AuthOption) grpc.StreamServerInterceptor
StreamAuthInterceptor is a gRPC stream server interceptor for JWT authentication.
Types ¶
type AuthOption ¶
type AuthOption func(*authOptions)
func WithClaims ¶
func WithClaims(claimsFunc func() jwtv5.Claims) AuthOption
func WithSigningMethod ¶
func WithSigningMethod(signingMethod jwtv5.SigningMethod) AuthOption
func WithTokenHeader ¶
func WithTokenHeader(header map[string]interface{}) AuthOption
WithTokenHeader withe customer tokenHeader for client side
Click to show internal directories.
Click to hide internal directories.