Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/backends/slack.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,17 @@ Slack

See auth scopes at `Slack OAuth docs`_.

- Limiting by team is possible by::
- To allow sign-in only from one Slack workspace, set its workspace ID::

SOCIAL_AUTH_SLACK_TEAM = ''
SOCIAL_AUTH_SLACK_TEAM = 'T0123456789'

The backend checks the ``team.id`` returned by Slack's ``users.identity``
response before signing in. The ``team`` authorization parameter selects a
workspace on Slack's sign-in page, but does not enforce this restriction.
A missing or different workspace ID rejects the sign-in. Configure a
workspace ID (starting with ``T``), not a workspace name or Enterprise
organization ID (starting with ``E``). Deployments previously using a name
or organization ID must update this setting before upgrading.

.. _Slack: https://api.slack.com/applications
.. _Slack OAuth docs: https://api.slack.com/docs/oauth
Loading