From 45f2eaa9d2965c79d77c898aab3a01a1f06e4149 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 3 Oct 2024 11:37:49 -0500 Subject: Provide a way to change OAuth2 client secrets. --- .../admin/confirm-change-client-secret.html | 45 ++++++++++++++++++++++ gn_auth/templates/admin/list-oauth2-clients.html | 10 ++++- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 gn_auth/templates/admin/confirm-change-client-secret.html (limited to 'gn_auth/templates') diff --git a/gn_auth/templates/admin/confirm-change-client-secret.html b/gn_auth/templates/admin/confirm-change-client-secret.html new file mode 100644 index 0000000..aa8ef81 --- /dev/null +++ b/gn_auth/templates/admin/confirm-change-client-secret.html @@ -0,0 +1,45 @@ +{%extends "base.html"%} + +{%block title%}gn-auth: View OAuth2 Client{%endblock%} + +{%block pagetitle%}View OAuth2 Client{%endblock%} + +{%block content%} +{{flash_messages()}} + +

Change Oauth2 Client Secret

+ +

You are attempting to change the CLIENT_SECRET value for the + following client:

+ + + + + + + + + + + + +
Client ID{{client.client_id}}
Client Name{{client.client_metadata.client_name}}
+ +

Are you absolutely sure you want to do this?
+ Note that you'll need to update your configurations for the client and + restart it for the settings to take effect!

+ +
+ + + + +
+ +
+
+ +{%endblock%} diff --git a/gn_auth/templates/admin/list-oauth2-clients.html b/gn_auth/templates/admin/list-oauth2-clients.html index ca0ee6d..6da5b2f 100644 --- a/gn_auth/templates/admin/list-oauth2-clients.html +++ b/gn_auth/templates/admin/list-oauth2-clients.html @@ -15,7 +15,7 @@ Client Name Default Redirect URI Owner - Actions + Actions @@ -43,6 +43,14 @@ class="btn btn-danger" /> + + + Change Secret + + {%else%} -- cgit v1.2.3