From 2ec308b314dd6402b85b4ed695701095595c72ee Mon Sep 17 00:00:00 2001 From: Caleb Lloyd Date: Fri, 16 Feb 2024 14:49:13 -0500 Subject: [PATCH] add omitempty to authorization.auth_users Signed-off-by: Caleb Lloyd --- v2/account_claims.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/account_claims.go b/v2/account_claims.go index 1f893bd..193516c 100644 --- a/v2/account_claims.go +++ b/v2/account_claims.go @@ -175,7 +175,7 @@ func (a *Account) AddMapping(sub Subject, to ...WeightedMapping) { // holder of the private key can decrypt. The auth service can also optionally encrypt the response back to the server using it's // publick xkey which will be in the authorization request. type ExternalAuthorization struct { - AuthUsers StringList `json:"auth_users"` + AuthUsers StringList `json:"auth_users,omitempty"` AllowedAccounts StringList `json:"allowed_accounts,omitempty"` XKey string `json:"xkey,omitempty"` }