From b80924613a641110bb05d5129fd485698006c3dc Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 2 May 2024 05:43:03 +0300 Subject: Fix editing of grant_types This commit makes the values for the grant types dynamic, enabling adding and/or removing of supported grant types. The editing was not updating the grant type values correctly either - we update the metadata key from "grants" to "grant_types" to fix that. --- gn_auth/templates/admin/view-oauth2-client.html | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'gn_auth/templates') diff --git a/gn_auth/templates/admin/view-oauth2-client.html b/gn_auth/templates/admin/view-oauth2-client.html index 9bc2c0d..3ec0c51 100644 --- a/gn_auth/templates/admin/view-oauth2-client.html +++ b/gn_auth/templates/admin/view-oauth2-client.html @@ -49,24 +49,19 @@
Grants - - -

- + {%for granttype in granttypes%} - + {%endif%} /> + +

+ {%endfor%}
-- cgit v1.2.3