diff --git a/cl/assets/templates/oauth2_provider/authorize.html b/cl/assets/templates/oauth2_provider/authorize.html new file mode 100644 index 0000000000..392ebba902 --- /dev/null +++ b/cl/assets/templates/oauth2_provider/authorize.html @@ -0,0 +1,81 @@ +{% 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 %} +
++ 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: +
+ +
+ After you decide, you will be redirected to:
+
+ {{ form.redirect_uri.value }}
+
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 %} ++ Apps you have granted access to your CourtListener account. +
+ + {% if messages %} + {% for message in messages %} +{{ message|escape }}
+ {% endfor %} + {% endif %} + + {% if authorizations %} +| Application | +Permissions | +First granted | +Last used | ++ |
|---|---|---|---|---|
| + {{ auth.application.name }} + | +
+
|
+ + {{ auth.first_granted|naturaltime }} + | ++ {{ auth.last_used|naturaltime }} + | ++ + | +
+ You haven’t authorized any apps yet. +
++ When you grant a third-party application access to your account + through the OAuth flow, it will appear here so you can review + or revoke its access at any time. +
+ {% endif %} +