diff --git a/cl/assets/templates/oauth2_provider/authorize.html b/cl/assets/templates/oauth2_provider/authorize.html new file mode 100644 index 0000000000..396f042069 --- /dev/null +++ b/cl/assets/templates/oauth2_provider/authorize.html @@ -0,0 +1,79 @@ +{% extends "base.html" %} + +{% block title %}{% if error %}Authorization error{% else %}Authorize {{ application.name }}{% endif %} – CourtListener.com{% endblock %} + +{% block privacy %} + +{% endblock %} + +{% block footer-scripts %}{% endblock %} +{% block sidebar %}{% endblock %} + +{% block content %} +
+
+ {% if not error %} +

Authorize {{ application.name }}?

+

+ Signed in as {{ request.user.username }}. +

+ +

+ The application {{ application.name }} is + requesting access to your CourtListener account. If you + approve, it will be able to: +

+ + + + {% if form.redirect_uri.value %} +

+ After you decide, you will be redirected to: +
+ {{ form.redirect_uri.value }} +

+ {% endif %} + + + + {% if form.errors %} + {% for error in form.non_field_errors %} +

{{ error|escape }}

+ {% endfor %} + {% endif %} + +
{% csrf_token %} + {% for field in form %} + {% if field.is_hidden %}{{ field }}{% endif %} + {% endfor %} +
+ + +
+
+ {% else %} +

Something went wrong

+

We couldn’t complete this authorization request.

+

+ Error: {{ error.error }} + {% if error.description %} +
Details: {{ error.description }} + {% endif %} +

+

+ Try returning to the application that sent you here and + starting over. If the problem continues, please + contact us. +

+ {% endif %} +
+
+{% endblock %}