Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/secrets/common/browser_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func vaultPermissionForMethod(method string) (string, error) {
}

func digestHexString(digest [32]byte) string {
return "0x" + hex.EncodeToString(digest[:])
return hex.EncodeToString(digest[:])
}

// executeBrowserUpsert handles secrets create/update when the user signs in with their organization account.
Expand Down
2 changes: 1 addition & 1 deletion cmd/secrets/common/browser_flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestVaultPermissionForMethod(t *testing.T) {
func TestDigestHexString(t *testing.T) {
var d [32]byte
copy(d[:], []byte{1, 2, 3})
assert.Equal(t, "0x0102030000000000000000000000000000000000000000000000000000000000", digestHexString(d))
assert.Equal(t, "0102030000000000000000000000000000000000000000000000000000000000", digestHexString(d))
}

// TestBrowserFlowPKCE checks PKCE S256 (RFC 7636) used by the browser secrets authorization step.
Expand Down
Loading