{% extends "admin/base_site.html" %} {% load i18n %} {% block breadcrumbs %} {% endblock %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block extrahead %} {{ block.super }} {% endblock %} {% block content %}

{% trans "Connect a Slack bot" %}

{% trans "Provide the OAuth details from your Slack app so the wizard can start the authorization flow." %}

{% if callback_host_error %}

{% blocktrans with host=callback_host %}Slack authorization requires a domain-based callback URL. Configure this node with a hostname instead of {{ host }} to continue.{% endblocktrans %}

{% endif %}
{% csrf_token %}
{{ form.non_field_errors }} {% for field in form %}
{{ field }}
{% if field.help_text %}

{{ field.help_text }}

{% endif %} {{ field.errors }}
{% endfor %}
{% if callback_host_error %}

{% trans "Set a public domain for this node so the redirect URL matches your Slack app configuration." %}

{% endif %}

{% trans "How to find these values" %}

  1. {% trans "Create or open your Slack app at api.slack.com/apps." %}
  2. {% trans "From Basic Information, copy the Client ID, Client Secret, and Signing Secret." %}
  3. {% blocktrans %}Add {{ callback_url }} as a Redirect URL in the Slack app's OAuth settings.{% endblocktrans %}
  4. {% blocktrans %}Use comma-separated OAuth scopes (for example, {{ default_scope }}).{% endblocktrans %}
{% endblock %}