Skip to content

Commit 971b3b1

Browse files
authored
[global pull] Fix logged in global push/pull (#1896)
## Summary This stopped working a while back. The previous ID provider ID and Sub where the same. This is no longer the case. ## How was it tested? DEVBOX_PROD=1 devbox global push
1 parent ac1e50b commit 971b3b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/boxcli/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func pullCmdFunc(cmd *cobra.Command, url string, flags *pullCmdFlags) error {
7171
creds = devopt.Credentials{
7272
IDToken: t.IDToken,
7373
Email: t.IDClaims().Email,
74-
Sub: t.IDClaims().ID,
74+
Sub: t.IDClaims().Subject,
7575
}
7676
}
7777

internal/boxcli/push.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func pushCmdFunc(cmd *cobra.Command, url string, flags pushCmdFlags) error {
5151
creds = devopt.Credentials{
5252
IDToken: t.IDToken,
5353
Email: t.IDClaims().Email,
54-
Sub: t.IDClaims().ID,
54+
Sub: t.IDClaims().Subject,
5555
}
5656
}
5757
return box.Push(cmd.Context(), devopt.PullboxOpts{

0 commit comments

Comments
 (0)