Fix auth client json prop naming (grant-validGrant) inconsistency

This commit is contained in:
Denis Arh
2021-09-12 08:55:35 +02:00
parent 9ae0328e86
commit 40ddb9db58
+2 -2
View File
@@ -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,