{% extends "oauth2_provider/base.html" %} {% load i18n static %} {% block title %}Authorize {{ application.name|default:"an app" }} ยท Redea Social{% endblock title %} {% block content %}
Redea Social
{% if not error %}

{% blocktrans with name=application.name|default:"This application" %}Authorize {{ name }}?{% endblocktrans %}

{% blocktrans with name=application.name|default:"This application" %}{{ name }} wants to connect to your Redea Social workspace with the following permissions:{% endblocktrans %}

{% csrf_token %} {% comment %} Hidden fields carry redirect_uri, state, scope, response_type, code_challenge, etc. โ€” must be rendered or the OAuth flow breaks. {% endcomment %} {% for field in form %} {% if field.is_hidden %}{{ field }}{% endif %} {% endfor %}
{% if workspace_error %}
{{ workspace_error }}
{% endif %} {% if form.errors %}
{{ form.errors }}
{% endif %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{# Cancel must NOT carry name="allow" โ€” its absence signals denial to DOT. #} {# Authorize MUST keep name="allow" โ€” DOT checks for it to detect approval. #}

{% trans "You can revoke this access at any time from Redea Social." %}

{% else %}

{% trans "Something went wrong" %}

{{ error.error }}

{{ error.description }}

{% endif %}
{% endblock content %}