aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-05-02 05:39:30 +0300
committerFrederick Muriuki Muriithi2024-05-02 05:41:29 +0300
commit1f25d024040e17ad86472fb29f17753218b9c119 (patch)
tree59bc0c074065bdd1d7dccb5d6f71ae530658d4cb
parentb3244a70776b75d9f35a3d1ff6f01fd6244f4e36 (diff)
downloadgn-auth-1f25d024040e17ad86472fb29f17753218b9c119.tar.gz
Use same name as register-client form
-rw-r--r--gn_auth/auth/authorisation/users/admin/views.py4
-rw-r--r--gn_auth/templates/admin/view-oauth2-client.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/gn_auth/auth/authorisation/users/admin/views.py b/gn_auth/auth/authorisation/users/admin/views.py
index e0ebdf3..3018a62 100644
--- a/gn_auth/auth/authorisation/users/admin/views.py
+++ b/gn_auth/auth/authorisation/users/admin/views.py
@@ -279,9 +279,9 @@ def edit_client():
the_client = the_client.value
client_metadata = {
**the_client.client_metadata,
- "default_redirect_uri": form["default_redirect_uri"],
+ "default_redirect_uri": form["redirect_uri"],
"redirect_uris": list(set(
- [form["default_redirect_uri"]] +
+ [form["redirect_uri"]] +
form["other_redirect_uris"].split("\r\n"))),
"grants": form.getlist("grants[]"),
"scope": form.getlist("scope[]")
diff --git a/gn_auth/templates/admin/view-oauth2-client.html b/gn_auth/templates/admin/view-oauth2-client.html
index b90428d..9bc2c0d 100644
--- a/gn_auth/templates/admin/view-oauth2-client.html
+++ b/gn_auth/templates/admin/view-oauth2-client.html
@@ -31,9 +31,9 @@
<fieldset>
<legend>Redirect URIs</legend>
- <label for="txt:default-redirect-uri">Default Redirect URI</label>
+ <label for="txt-redirect-uri">Default Redirect URI</label>
<br />
- <input type="text" name="default_redirect_uri" id="txt:default-redirect-uri"
+ <input type="text" name="redirect_uri" id="txt-redirect-uri"
value="{{client.client_metadata.default_redirect_uri}}"
required="required">
<br /><br />