From f2f179d984c8f91302fabf6bf301cb5abe1e633e Mon Sep 17 00:00:00 2001 From: david Date: Thu, 29 Feb 2024 22:11:36 +0800 Subject: [PATCH 1/2] fix jwtClaims + owneridentity --- types/encipher.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/encipher.go b/types/encipher.go index 66a075d..8e98e47 100644 --- a/types/encipher.go +++ b/types/encipher.go @@ -6,10 +6,10 @@ type CertFileBytes struct { } type JwtClaims struct { - ID uint `json:"id"` - Identity string `json:"identity"` - Extend map[string]string `json:"extend"` - Client string `json:"client"` - Role string `json:"role"` - ExpiresAt int64 `json:"exp"` + ID uint `json:"id"` + Identity string `json:"identity"` + Extend map[string]string `json:"extend"` + OwnerIdentity any `json:"owner_identity"` + Role string `json:"role"` + ExpiresAt int64 `json:"exp"` } From 29fb426c60b982d874eca537ab626c9e6325516e Mon Sep 17 00:00:00 2001 From: david Date: Thu, 29 Feb 2024 22:14:56 +0800 Subject: [PATCH 2/2] fix jwtClaims + owner --- types/encipher.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/encipher.go b/types/encipher.go index 8e98e47..ce98949 100644 --- a/types/encipher.go +++ b/types/encipher.go @@ -6,10 +6,10 @@ type CertFileBytes struct { } type JwtClaims struct { - ID uint `json:"id"` - Identity string `json:"identity"` - Extend map[string]string `json:"extend"` - OwnerIdentity any `json:"owner_identity"` - Role string `json:"role"` - ExpiresAt int64 `json:"exp"` + ID uint `json:"id"` + Identity string `json:"identity"` + Extend map[string]string `json:"extend"` + Owner any `json:"owner"` + Role string `json:"role"` + ExpiresAt int64 `json:"exp"` }