Connect X to Auth0
X setup
- Visit the X Developer account page and sign up.
- Follow the onscreen instructions to create a new App in the X Developer Console.
- Complete the Consent Screen Information form.
- Navigate to Project and Apps and click on your app and go to settings.
- Go to User authentication settings and click on edit.
- Configure your permissions.
- Select type of App to enable OAuth2.0 Authentication.
-
Configure OAuth redirect URL:
- Redirect URL:
https://YOUR_AUTH0_DOMAIN/login/callback
You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains. - Redirect URL:
- Click Save.
- Still on the App settings page, click keys and tokens tab.
- Copy the Client ID and Client Secret.
Token Vault configuration example
To configure the Token Vault for your X connection, you can use the following code snippet in your application:Next steps
- To learn how to configure applications to access Token Vault, read Configure Token Vault.
- To learn how to get an access token to make a tool call, complete the Call other’s APIs on user’s behalf Quickstart.