* website/integrations-all: update authentik configuration template
* website/integrations: slack,pocketbase,tandoor: convert to new authentik configuration format
* Revert "website/integrations-all: update authentik configuration template"
Not for this PR. Don't want to cause merge conflicts later on.
This reverts commit 8378502090.
71 lines
3.8 KiB
Markdown
71 lines
3.8 KiB
Markdown
---
|
|
title: Integrate with Slack
|
|
sidebar_label: Slack
|
|
support_level: authentik
|
|
---
|
|
|
|
## What is Slack
|
|
|
|
> Slack is a platform for collaboration, with chat and real-time video capabilities. To learn more, visit https://slack.com.
|
|
|
|
## Preparation
|
|
|
|
The following placeholders are used in this guide:
|
|
|
|
- <kbd><em>company</em>.slack.com</kbd> is the FQDN of your Slack workspace.
|
|
- `authentik.company` is the FQDN of the authentik installation.
|
|
|
|
:::note
|
|
This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application.
|
|
:::
|
|
|
|
For additional information about integrating with Slack, refer to their [documentation](https://slack.com/help/articles/205168057-Custom-SAML-single-sign-on).
|
|
|
|
## authentik configuration
|
|
|
|
To support the integration of Slack with authentik, you need to create an application/provider pair in authentik.
|
|
|
|
### Create property mappings
|
|
|
|
1. Log in to authentik as an admin, and open the authentik Admin interface.
|
|
2. Navigate to **Customization** > **Property Mappings** and click **Create**. Create two **SAML Provider Property Mapping**s with the following settings:
|
|
- **Name Mapping:**
|
|
- **Name**: Choose a descriptive name
|
|
- **SAML Attribute Name**: <kbd>User.Email</kbd>
|
|
- **Friendly Name**: Leave blank
|
|
- **Expression**: <kbd>return request.user.email</kbd>
|
|
- **Email Mapping:**
|
|
- **Name**: Choose a descriptive name
|
|
- **SAML Attribute Name**: <kbd>User.Username</kbd>
|
|
- **Friendly Name**: Leave blank
|
|
- **Expression**: <kbd>return request.user.username</kbd>
|
|
|
|
### Create an application and provider in authentik
|
|
|
|
1. Log in to authentik as an admin, and open the authentik Admin interface.
|
|
2. Navigate to **Applications** > **Applications** and click **Create with Provider** to create an application and provider pair. (Alternatively you can first create a provider separately, then create the application and connect it with the provider.)
|
|
|
|
- **Application**: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings. Take note of the **slug** as it will be required later.
|
|
- **Choose a Provider type**: select **SAML Provider** as the provider type.
|
|
- **Configure the Provider**: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
|
|
- Set the **ACS URL** to <kbd>https://<em>company</em>.slack.com/sso/saml</kbd>.
|
|
- Set the **Issuer** to <kbd>https://slack.com</kbd>.
|
|
- Set the **Service Provider Binding** to `Post`.
|
|
- Under **Advanced protocol settings**, add the two **Property Mappings** you created in the previous section, then select a **Signing Certificate**.
|
|
- **Configure Bindings** _(optional)_: you can create a [binding](/docs/add-secure-apps/flows-stages/bindings/) (policy, group, or user) to manage the listing and access to applications on a user's **My applications** page.
|
|
|
|
3. Click **Submit** to save the new application and provider.
|
|
|
|
## Slack configuration
|
|
|
|
### Step 4. Configure Slack
|
|
|
|
1. Log in to the Slack Admin Dashboard.
|
|
2. Navigate to the **Configure SAML Authentication** page.
|
|
3. Enter the following values:
|
|
- **SAML 2.0 Endpoint (HTTP)**: copy/paste in the **SSO URL (Redirect)** URL from the provider that you created in authentik. **Example**: `https://_authentik.company_/applications/saml/slack/sso/binding/redirect/`
|
|
- **Identity Provider Issuer**: set to `https://slack.com`
|
|
- **Public Certificate**: add the certificate, which you can download from the authentik provider, under **Download signing certificate**.
|
|
4. Optionally, configure the other settings and customize the Sign in button label.
|
|
5. Click **Save**.
|