Skip to content

Commit

Permalink
remove spurious log line
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode committed Jan 14, 2020
1 parent 6e99165 commit 042ce53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/grpc/services/gateway/authprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,11 @@ func (s *svc) Authenticate(ctx context.Context, req *gateway.AuthenticateRequest
}

// we need to pass the token to authenticate the CreateHome request.
// TODO(labkode): appending to existing context will not pass the token.
ctx = context.Background()
ctx = tokenpkg.ContextSetToken(ctx, token)
ctx = metadata.AppendToOutgoingContext(ctx, tokenpkg.TokenHeader, token)

log.Info().Msgf("%+v %+v", ctx, token)

// create home directory
createHomeReq := &storageprovider.CreateHomeRequest{}
createHomeRes, err := s.CreateHome(ctx, createHomeReq)
Expand Down

0 comments on commit 042ce53

Please sign in to comment.