From 1017c71ba1d80a1690e357a938ad46f246a456ae Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 10 Dec 2022 21:03:14 -0700 Subject: Working start of an OAuth flow --- templates/api/oauth_authorize.html | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 templates/api/oauth_authorize.html (limited to 'templates/api') diff --git a/templates/api/oauth_authorize.html b/templates/api/oauth_authorize.html new file mode 100644 index 0000000..41aac0d --- /dev/null +++ b/templates/api/oauth_authorize.html @@ -0,0 +1,39 @@ +{% extends "base.html" %} + +{% block title %}Authorize {{ application.name }}{% endblock %} + +{% block content %} + {% if not identities %} +

+ You cannot give access to {{ application.name }} as you + have no identities yet. Log in via the website and create + at least one identity, then retry this process. +

+ {% else %} +
+ {% csrf_token %} +
+ Authorize +
+
+ + +
+
+

Do you want to give {{ application.name }} access to this identity?

+

It will have permission to: {{ scope }}

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