aboutsummaryrefslogtreecommitdiff
path: root/gn3/templates/oauth2
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-03-15 04:28:26 +0300
committerFrederick Muriuki Muriithi2024-03-15 04:29:24 +0300
commita6ef95af5b6b072acdc02ba4db08c1bdda4c1f1a (patch)
tree9950b211af91945e9fcfe658a37dbde77ea25075 /gn3/templates/oauth2
parentdd0b29c07017ec398c447ca683dd4b4be18d73b7 (diff)
downloadgenenetwork3-a6ef95af5b6b072acdc02ba4db08c1bdda4c1f1a.tar.gz
Remove ALL html templates from GeneNetwork3
GN3 provides an API to provide data, and needs no HTML UI.
Diffstat (limited to 'gn3/templates/oauth2')
-rw-r--r--gn3/templates/oauth2/authorise-user.html48
-rw-r--r--gn3/templates/oauth2/oauth2_error.html16
2 files changed, 0 insertions, 64 deletions
diff --git a/gn3/templates/oauth2/authorise-user.html b/gn3/templates/oauth2/authorise-user.html
deleted file mode 100644
index b9284e5..0000000
--- a/gn3/templates/oauth2/authorise-user.html
+++ /dev/null
@@ -1,48 +0,0 @@
-{%extends "base.html"%}
-
-{%block title%}Authorise User{%endblock%}
-
-{%block pagetitle%}Authenticate to the API Server{%endblock%}
-
-{%block content%}
-{{flash_messages()}}
-
-<form method="POST" action="{{url_for('oauth2.auth.authorise')}}">
- <input type="hidden" name="response_type" value="{{response_type}}" />
- <input type="hidden" name="scope" value="{{scope | join(' ')}}" />
- <input type="hidden" name="client_id" value="{{client.client_id}}" />
- <p>
- You are authorising "{{client.client_metadata.client_name}}" to access
- Genenetwork 3 with the following scope:
- </p>
- <fieldset>
- <legend>Scope</legend>
- {%for scp in scope%}
- <div class="checkbox disabled">
- <label for="scope:{{scp}}">
- <input id="scope:{{scp}}" type="checkbox" name="scope[]" value="{{scp}}"
- checked="checked" disabled="disabled" />
- {{scp}}
- </label>
- </div>
- {%endfor%}
- </fieldset>
-
- <fieldset>
- <legend>User Credentials</legend>
- <fieldset class="form-group">
- <label for="user:email" class="form-label">Email</label>
- <input type="email" name="user:email" id="user:email" required="required"
- class="form-control"/>
- </fieldset>
-
- <fieldset class="form-group">
- <label for="user:password" class="form-label">Password</label>
- <input type="password" name="user:password" id="user:password"
- required="required" class="form-control" />
- </fieldset>
- </fieldset>
-
- <input type="submit" value="authorise" class="btn btn-primary" />
-</form>
-{%endblock%}
diff --git a/gn3/templates/oauth2/oauth2_error.html b/gn3/templates/oauth2/oauth2_error.html
deleted file mode 100644
index ec9a500..0000000
--- a/gn3/templates/oauth2/oauth2_error.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{%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:
-
-<p>
- <strong>{{error.error}}</strong>:
- {{error.description}}
-</p>
-{%endblock%}