aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/templates/admin/register-client.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-05-02 05:12:43 +0300
committerFrederick Muriuki Muriithi2024-05-02 05:40:57 +0300
commitb3244a70776b75d9f35a3d1ff6f01fd6244f4e36 (patch)
tree3e39b37204b648136f4f412bcecb4e5ebcd9bcc2 /gn_auth/templates/admin/register-client.html
parentabb8ab84cd948edbe9e678aebbaa5a59681c5adc (diff)
downloadgn-auth-b3244a70776b75d9f35a3d1ff6f01fd6244f4e36.tar.gz
Make registration of grant-types more flexible.
Diffstat (limited to 'gn_auth/templates/admin/register-client.html')
-rw-r--r--gn_auth/templates/admin/register-client.html16
1 files changed, 7 insertions, 9 deletions
diff --git a/gn_auth/templates/admin/register-client.html b/gn_auth/templates/admin/register-client.html
index 5d525c5..20d7aa2 100644
--- a/gn_auth/templates/admin/register-client.html
+++ b/gn_auth/templates/admin/register-client.html
@@ -43,19 +43,17 @@
<br /><br />
<fieldset>
<legend>Supported grant types</legend>
+ {%for granttype in granttypes%}
<input name="grants[]"
type="checkbox"
- value="authorization_code"
- id="chk-authorization-code"
+ value="{{granttype.value}}"
+ id="chk-{{granttype.name.lower().replace(' ', '-')}}"
checked="checked" />
- <label for="chk-authorization-code">Authorization Code</label>
+ <label for="chk-{{granttype.name.lower().replace(' ', '-')}}">
+ {{granttype.name}}
+ </label>
<br /><br />
-
- <input name="grants[]"
- type="checkbox"
- value="refresh_token"
- id="chk-refresh-token" />
- <label for="chk-refresh-token">Refresh Token</label>
+ {%endfor%}
</fieldset>
</fieldset>