Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthFunc ¶
NewAuthFunc returns a callback to be used with grpc_auth interceptor. It reads the Bearer token from the context of an incoming request and verifies it using given tokens.Validator. If the validator fails to verify the token an error is returned. Otherwise the context is returned unaltered.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.