aboutsummaryrefslogtreecommitdiff
path: root/server/rpc.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/rpc.go')
-rw-r--r--server/rpc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/rpc.go b/server/rpc.go
index 45f84f0..2d02218 100644
--- a/server/rpc.go
+++ b/server/rpc.go
@@ -41,7 +41,7 @@ func (s *rpcServer) Sign(ctx context.Context, req *proto.SignRequest) (*proto.Si
}
func authInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error) {
- md, ok := metadata.FromContext(ctx)
+ md, ok := metadata.FromOutgoingContext(ctx)
if !ok {
return nil, grpc.Errorf(codes.Unauthenticated, "request not authenticated")
}