From 1e8a16dfe870701d15610aec41655227eeccc7a7 Mon Sep 17 00:00:00 2001 From: Johnny Bouder Date: Tue, 23 Jan 2024 09:07:37 -0500 Subject: [PATCH] Add oath template and remove unneeded offset. --- jhub_apps/templates/oauth.html | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 jhub_apps/templates/oauth.html diff --git a/jhub_apps/templates/oauth.html b/jhub_apps/templates/oauth.html new file mode 100644 index 00000000..769e9747 --- /dev/null +++ b/jhub_apps/templates/oauth.html @@ -0,0 +1,43 @@ +{% extends "page.html" %} {% block login_widget %} {% endblock %} {% block main +%} +
+

Authorize access

+ +

+ An application is requesting authorization to access data associated with + your JupyterHub account +

+ +

+ {{ oauth_client.description }} (oauth URL: {{ oauth_client.redirect_uri }}) + would like permission to identify you. {% if scope_descriptions | length == + 1 and not scope_descriptions[0].scope %} It will not be able to take actions + on your behalf. {% endif %} +

+ +

This will grant the application permission to:

+
+
+ + {# these are the 'real' inputs to the form -#} {% for scope in + allowed_scopes %} + + {% endfor %} {% for scope_info in scope_descriptions %} +
+ +
+ {% endfor %} + +
+
+
+ +{% endblock %}