{% extends "oauth2_provider/base.html" %} {% load i18n static %} {% block title %}Authorize {{ application.name|default:"an app" }} · BrightBean Studio{% endblock title %} {% block content %}
BrightBean · Studio
{% 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 BrightBean Studio 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 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 BrightBean Studio." %}

{% else %}

{% trans "Something went wrong" %}

{{ error.error }}

{{ error.description }}

{% endif %}
{% endblock content %}