website/docs/users-sources/sources/social-logins/twitter/index.md
Allows users to authenticate using their X credentials by configuring X as a federated identity provider via OAuth2.
The following placeholders are used in this guide:
authentik.company is the FQDN of the authentik installation.To integrate X with authentik you will need to create an OAuth application in the X Developer Portal.
Log in to the X Developer Portal.
Navigate to Projects & Apps > Overview.
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.
Under User authentication settings, click Set up and set the following required fields:
ReadWeb App, Automated App or Bothttps://authentik.company/source/oauth/callback/x/https://authentik.companyClick Save.
Take note of the Client ID and Client Secret. These values will be required in the next section.
Click Done.
To support the integration of X with authentik, you need to create a Twitter OAuth source in authentik.
Callback URI / Redirect URL field (e.g. x), and set the following required configurations:
:::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. :::
:::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. :::