From 5087f00eb2f5201ade8df8aad45706973433f2ee Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 17 Mar 2024 23:15:10 +0800 Subject: [PATCH] :ambulance: Fix security issue in authenticate grpc api --- pkg/grpc/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/grpc/server.go b/pkg/grpc/server.go index b172c8b..ddbec31 100644 --- a/pkg/grpc/server.go +++ b/pkg/grpc/server.go @@ -30,6 +30,7 @@ func (v *Server) Authenticate(_ context.Context, in *proto.AuthRequest) (*proto. AccessToken: &atk, RefreshToken: &rtk, Userinfo: &proto.Userinfo{ + Id: uint64(user.ID), Name: user.Name, Nick: user.Nick, Email: user.GetPrimaryEmail().Content,