From c67276c3d3d801863fc369fea4df5683a604a5ec Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Thu, 7 Oct 2021 16:48:20 +0200 Subject: [PATCH] Fix JWT generator command --- auth/commands/commands.go | 1 + 1 file changed, 1 insertion(+) diff --git a/auth/commands/commands.go b/auth/commands/commands.go index 1a79f3647..f1bffaa47 100644 --- a/auth/commands/commands.go +++ b/auth/commands/commands.go @@ -89,6 +89,7 @@ func Command(ctx context.Context, app serviceInitializer, storeInit func(ctx con Args: cobra.MinimumNArgs(1), PreRunE: commandPreRunInitService(app), Run: func(cmd *cobra.Command, args []string) { + ctx = auth.SetIdentityToContext(ctx, auth.ServiceUser()) var ( user *types.User err error