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/oauth2/authorise-user.html | 48 ++++++++++++++++++++++++++++ gn_auth/templates/oauth2/oauth2_error.html | 16 ++++++++++ 2 files changed, 64 insertions(+) create mode 100644 gn_auth/templates/oauth2/authorise-user.html create mode 100644 gn_auth/templates/oauth2/oauth2_error.html (limited to 'gn_auth/templates/oauth2') diff --git a/gn_auth/templates/oauth2/authorise-user.html b/gn_auth/templates/oauth2/authorise-user.html new file mode 100644 index 0000000..b9284e5 --- /dev/null +++ b/gn_auth/templates/oauth2/authorise-user.html @@ -0,0 +1,48 @@ +{%extends "base.html"%} + +{%block title%}Authorise User{%endblock%} + +{%block pagetitle%}Authenticate to the API Server{%endblock%} + +{%block content%} +{{flash_messages()}} + +
+ + + +

+ You are authorising "{{client.client_metadata.client_name}}" to access + Genenetwork 3 with the following scope: +

+
+ Scope + {%for scp in scope%} +
+ +
+ {%endfor%} +
+ +
+ User Credentials +
+ + +
+ +
+ + +
+
+ + +
+{%endblock%} diff --git a/gn_auth/templates/oauth2/oauth2_error.html b/gn_auth/templates/oauth2/oauth2_error.html new file mode 100644 index 0000000..ec9a500 --- /dev/null +++ b/gn_auth/templates/oauth2/oauth2_error.html @@ -0,0 +1,16 @@ +{%extends "base.html"%} + +{%block title%}OAuth2 Error{%endblock%} + +{%block pagetitle%}Error: {{error.status_code}}{%endblock%} + +{%block content%} +{{flash_messages()}} + +There was an error trying to fulfill your request: + +

+ {{error.error}}: + {{error.description}} +

+{%endblock%} -- cgit v1.2.3