Documentation ¶
Index ¶
Constants ¶
View Source
const (
ContextKey grpc.Key = "jwt"
)
Variables ¶
Functions ¶
func StreamInterceptor ¶
func StreamInterceptor(aservice AuthenticationService) grpc.StreamServerInterceptor
StreamInterceptor will use the authentication service to get the data from JWT token, and put it into a new context, that will be passed to the interceptors chain
func UnaryInterceptor ¶
func UnaryInterceptor(aservice AuthenticationService) grpc.UnaryServerInterceptor
UnaryInterceptor will use the authentication service to get the data from JWT token, and put it into a new context, that will be passed to the interceptors chain
Types ¶
Click to show internal directories.
Click to hide internal directories.