From 2aa7abf383df814f24c88beea733c324cda682d0 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 29 May 2023 14:56:24 +0300 Subject: auth: Enable registration of OAuth2 clients Add UI and code to enable the administrative user to register new OAuth2 clients that can access the API server. --- gn3/templates/admin/dashboard.html | 16 ++++++ gn3/templates/admin/login.html | 32 ++++++++++++ gn3/templates/admin/register-client.html | 78 ++++++++++++++++++++++++++++++ gn3/templates/admin/registered-client.html | 21 ++++++++ 4 files changed, 147 insertions(+) create mode 100644 gn3/templates/admin/dashboard.html create mode 100644 gn3/templates/admin/login.html create mode 100644 gn3/templates/admin/register-client.html create mode 100644 gn3/templates/admin/registered-client.html (limited to 'gn3/templates/admin') diff --git a/gn3/templates/admin/dashboard.html b/gn3/templates/admin/dashboard.html new file mode 100644 index 0000000..49bf2f6 --- /dev/null +++ b/gn3/templates/admin/dashboard.html @@ -0,0 +1,16 @@ +{%extends "base.html"%} + +{%block title%}Genenetwork3: Admin Dashboard{%endblock%} + +{%block content%} +{{flash_messages()}} + +
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.
+ +