mirror of
https://github.com/goauthentik/authentik
synced 2026-05-01 20:07:20 +02:00
* website/integrations: rename "Create with Provider" to "New Application" The application list page now uses a split-button labeled "New Application" instead of the old "Create with Provider" dropdown. Update all 113 integration guides to match. * website/docs: update flow, stage, and policy button labels - "Create" → "New Flow", "New Stage", "New Policy" for trigger buttons - "Finish" → "Create Flow", "Create Stage", "Create Policy" for submit - "Create and bind stage" → "New Stage" / "Bind Existing Stage" - "Create" (binding submit) → "Create Stage Binding" * website/docs: update provider button labels - "Create" → "New Provider" for trigger buttons - "Create with Provider" → "New Application" in RAC docs - "Create" → "New Property Mapping", "New RAC Endpoint", "New Prompt" for related entity creation * website/docs: update directory button labels - "Create" → "New Source" for federation/social login pages - "Create" → "New Role", submit → "Create Role" - "Create" → "New Invitation" - Policy binding submit → "Create Policy Binding" * website/docs: update endpoint device and system management button labels - "Create" → "New Endpoint Connector", "New Enrollment Token", "New Device Access Group", "New Flow" - Submit → "Create Device Access Group" - "Create" → "New Notification Rule", "New Notification Transport" - Binding submit → "Create Policy Binding" * Reorganize policy documentation * website/docs: address policy docs review feedback * post-rebase * website/docs: Reorganize policy documentation -- Revisions (#21601) * apply suggestions * Fix escaped. * Fix whitespace. * Update button label. * Fix phrasing. * Fix phrasing. * Clean up stragglers. * Format. --------- Co-authored-by: Dominic R <dominic@sdko.org>
60 lines
2.8 KiB
Markdown
60 lines
2.8 KiB
Markdown
---
|
|
title: X (Twitter)
|
|
tags:
|
|
- source
|
|
- x
|
|
- twitter
|
|
---
|
|
|
|
Allows users to authenticate using their X credentials by configuring X as a federated identity provider via OAuth2.
|
|
|
|
## Preparation
|
|
|
|
The following placeholders are used in this guide:
|
|
|
|
- `authentik.company` is the FQDN of the authentik installation.
|
|
|
|
## X configuration
|
|
|
|
To integrate X with authentik you will need to create an OAuth application in the X Developer Portal.
|
|
|
|
1. Log in to the [X Developer Portal](https://developer.twitter.com/).
|
|
2. Navigate to **Projects & Apps** > **Overview**.
|
|
3. Click the **App Settings** icon (cogwheel) next to the Project App that you want to use. For information on creating a new Project App, refer to the [X Developer Documentation](https://docs.x.com/fundamentals/developer-apps#app-management).
|
|
4. Under **User authentication settings**, click **Set up** and set the following required fields:
|
|
- **App permissions**: `Read`
|
|
- **Type of App**: `Web App, Automated App or Bot`
|
|
- **Callback URI / Redirect URL**: `https://authentik.company/source/oauth/callback/x/`
|
|
- **Website URL**: `https://authentik.company`
|
|
|
|
5. Click **Save**.
|
|
6. Take note of the **Client ID** and **Client Secret**. These values will be required in the next section.
|
|
7. Click **Done**.
|
|
|
|
## authentik configuration
|
|
|
|
To support the integration of X with authentik, you need to create a Twitter OAuth source in authentik.
|
|
|
|
1. Log in to authentik as an administrator and open the authentik Admin interface.
|
|
2. Navigate to **Directory** > **Federation and Social login**, click **New Source**, and then configure the following settings:
|
|
- **Select type**: select **Twitter OAuth Source** as the source type.
|
|
- **Create OAuth Source**: provide a name, a slug which must match the slug used in the X `Callback URI / Redirect URL` field (e.g. `x`), and set the following required configurations:
|
|
- **Protocol settings**
|
|
- **Consumer Key**: Enter the Client ID from the X Developer Portal.
|
|
- **Consumer Secret**: Enter the Client Secret from the X Developer Portal.
|
|
- **Scopes** _(optional)_: define any further access scopes.
|
|
3. Click **Finish**.
|
|
|
|
:::info
|
|
For instructions on how to display the new source on the authentik login page, refer to the [Add sources to default login page documentation](../../index.md#add-sources-to-default-login-page).
|
|
:::
|
|
|
|
:::info Embed new source in flow :ak-enterprise
|
|
For instructions on embedding the new source within a flow, such as an authorization flow, refer to the [Source Stage documentation](../../../../../add-secure-apps/flows-stages/stages/source/).
|
|
:::
|
|
|
|
## Resources
|
|
|
|
- [X Developer Portal Documentation](https://docs.x.com/fundamentals/developer-portal)
|
|
- [X Developer Documentation - App Management](https://docs.x.com/fundamentals/developer-apps#app-management)
|