{% extends 'bom/bom-base.html' %} {% load bom_oauth %} {% block head-title %}Authorize {{ application.name|default:"app" }}{% endblock %} {% block content %}
{% if error %}
Error: {{ error.error }}

{{ error.description }}

{% else %} {% oauth_access_choices as access %}
{% csrf_token %} {% for field in form %} {% if field.is_hidden and field.name != 'scope' %}{{ field }}{% endif %} {% endfor %}
Connect {{ application.name|default:"this app" }}? {% if access.organization %}

This app wants to access {{ access.organization.name }} as {{ request.user.get_username }}. It never has more access than your role.

What may it do?

{% for choice in access.choices %}

{% endfor %} {% else %} {{ form.scope.as_hidden }}

Join or create an organization before connecting an app.

{% endif %} {% if form.errors %}

{{ form.errors }}

{% endif %}
{% if access.organization %} {% endif %}

You can disconnect this app any time in Settings → API Tokens.

{% endif %}
{% endblock %}