Prerequisites
-
A Twitter developer account.
Procedure
-
Click Identity Providers in the menu.
-
From the
Add provider
list, selectTwitter
.Add identity provider -
Copy the value of Redirect URI to your clipboard.
-
In a separate browser tab, create an app in Twitter Application Management.
-
Enter any value for name and description.
-
The value for Website can be any valid URL except
localhost
. -
Paste the value of the Redirect URL into the Callback URL field.
-
When you create your Twitter app, note the value of Consumer Key and Consumer Secret in the Keys and Access Tokens section.
-
-
In Keycloak, paste the value of the Consumer Key into the Client ID field.
-
In Keycloak, paste the value of the Consumer Secret into the Client Secret field.
-
Click Add.