From 40ddb9db580738e3ed85c4c98e1545ba7b2b9916 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Sun, 12 Sep 2021 08:55:35 +0200 Subject: [PATCH] Fix auth client json prop naming (grant-validGrant) inconsistency --- system/types/auth_client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/types/auth_client.go b/system/types/auth_client.go index 1ebafeb07..970eca855 100644 --- a/system/types/auth_client.go +++ b/system/types/auth_client.go @@ -29,7 +29,7 @@ type ( // valid grant for this client (only one) // - authorization_code // - client_credentials - ValidGrant string `json:"grant"` + ValidGrant string `json:"validGrant"` // Valid redirection URIs RedirectURI string `json:"redirectURI"` @@ -132,7 +132,7 @@ func (r AuthClient) Dict() map[string]interface{} { "ID": r.ID, "labels": r.Labels, "scope": r.Scope, - "grant": r.ValidGrant, + "validGrant": r.ValidGrant, "redirectURI": r.RedirectURI, "trusted": r.Trusted, "enabled": r.Enabled,