mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 17:22:26 +00:00
add metadata forwarder server interceptors
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@ -22,5 +22,5 @@ func makeTokenAuthFunc(v TokenValidator) grpc_auth.AuthFunc {
|
||||
}
|
||||
|
||||
func NewBearerClientInterceptors(token string) interceptors.ClientInterceptors {
|
||||
return metadata.NewInterceptors("authorization", "Bearer "+token)
|
||||
return metadata.NewInterceptors("authorization", "bearer "+token)
|
||||
}
|
||||
|
Reference in New Issue
Block a user