You can authenticate users in AM with Twitter. Before you begin, you need to sign up for a Twitter Developer account.
To connect your application to Twitter, you will:
- Register a new application in Twitter
- Create a Twitter identity provider in AM
- Set up the connection in Twitter
- Test the connection
Go to +Add App in the Twitter Developer Portal.
- Give your application a name.
- Click Complete.
{% hint style="info" %} Twitter will generate an API Key and API Secret Key for your application. Make a note of them for later use. {% endhint %}
- Log in to AM Console.
- Click Settings > Providers.
- Click the plus icon .
- Select Twitter as your identity provider type and click Next.
{% hint style="info" %} Ensure you have the API Key and API Secret generated by Twitter to hand. {% endhint %}
-
Give your identity provider a name.
-
Enter your Twitter API Key and API Secret Key.
-
Click Create.
Create Twitter IdP
{% hint style="info" %} Copy the URL in 1. Configure the Redirect URI to the right of the page. You need this value to update your Twitter application settings in the next section. {% endhint %}
Go to your Twitter application settings and edit the Authentication Settings.
- Enable 3-legged OAuth.
- Add a Callback URLs with the Redirect URI created in the previous step.
- Click Save Changes.
You can test your Twitter connection using a web application created in AM.
-
In AM Console, click Applications and select your social identity provider.
Select Twitter IdP
-
Call the Login page (the
/oauth/authorize
endpoint). If the connection is working you will see a Sign in with button.If the button is not visible, there may be a problem with the identity provider settings. Check the AM Gateway log for more information.
Sign in Options