From 6d9c61dc0072b96b12153e64940b465306f25bfb Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 7 Aug 2023 07:58:09 +0300 Subject: Change imports to new unified db module. --- gn_auth/templates/admin/dashboard.html | 24 ++++++++ gn_auth/templates/admin/list-oauth2-clients.html | 56 +++++++++++++++++ gn_auth/templates/admin/login.html | 32 ++++++++++ gn_auth/templates/admin/register-client.html | 78 ++++++++++++++++++++++++ gn_auth/templates/admin/registered-client.html | 21 +++++++ gn_auth/templates/admin/view-oauth2-client.html | 75 +++++++++++++++++++++++ 6 files changed, 286 insertions(+) create mode 100644 gn_auth/templates/admin/dashboard.html create mode 100644 gn_auth/templates/admin/list-oauth2-clients.html create mode 100644 gn_auth/templates/admin/login.html create mode 100644 gn_auth/templates/admin/register-client.html create mode 100644 gn_auth/templates/admin/registered-client.html create mode 100644 gn_auth/templates/admin/view-oauth2-client.html (limited to 'gn_auth/templates/admin') diff --git a/gn_auth/templates/admin/dashboard.html b/gn_auth/templates/admin/dashboard.html new file mode 100644 index 0000000..7798022 --- /dev/null +++ b/gn_auth/templates/admin/dashboard.html @@ -0,0 +1,24 @@ +{%extends "base.html"%} + +{%block title%}Genenetwork3: Admin Dashboard{%endblock%} + +{%block pagetitle%}Admin Dashboard{%endblock%} + +{%block content%} +{{flash_messages()}} + +
+{%endblock%} diff --git a/gn_auth/templates/admin/list-oauth2-clients.html b/gn_auth/templates/admin/list-oauth2-clients.html new file mode 100644 index 0000000..0104f0d --- /dev/null +++ b/gn_auth/templates/admin/list-oauth2-clients.html @@ -0,0 +1,56 @@ +{%extends "base.html"%} + +{%block title%}Genenetwork3: OAuth2 Clients{%endblock%} + +{%block pagetitle%}OAuth2 Clients{%endblock%} + +{%block content%} +{{flash_messages()}} + +Client ID | +Client Name | +Default Redirect URI | +Owner | +Actions | +|
---|---|---|---|---|---|
{{client.client_id}} | +{{client.client_metadata.client_name}} | +{{client.client_metadata.default_redirect_uri}} | +{{client.user.name}} ({{client.user.email}}) | ++ + View/Edit + + | ++ + | +
+ No registered OAuth2 clients! + | +
Client has been registered successfully.
+ +Please save the following client details somewhere. There is no way to + retrieve the the CLIENT_SECRET once you leave this page.
+ +No such client
+{%else%} +{%set client = client.value%} + +{%endif%} +{%endblock%} -- cgit v1.2.3