2014-01-17 17:21:44 +00:00
|
|
|
<section id="social-twitter">
|
|
|
|
<title>Twitter</title>
|
|
|
|
<para>
|
|
|
|
To enable login with Twtter you first have to create an application in the
|
2015-02-21 01:08:57 +00:00
|
|
|
<link xlink:href="https://dev.twitter.com/apps">Twitter Developer Console</link>. Then you need to copy
|
2014-01-17 17:21:44 +00:00
|
|
|
the consumer key and secret into the Keycloak Admin Console.
|
|
|
|
</para>
|
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2015-02-21 01:08:57 +00:00
|
|
|
Log in to the <link xlink:href="https://dev.twitter.com/apps">Twitter Developer Console</link>. Click the
|
2014-01-17 17:21:44 +00:00
|
|
|
<literal>Create a new application</literal> button. Use any value for <literal>Name</literal>,
|
|
|
|
<literal>Description</literal> and <literal>Website</literal> you want. Insert the social callback url
|
2014-01-21 14:01:03 +00:00
|
|
|
in <literal>Callback URL</literal>. Then click <literal>Create your Twitter application</literal>.
|
2014-01-17 17:21:44 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Now click on <literal>Settings</literal> and tick the box <literal>Allow this application to be used to Sign in with Twitter</literal>,
|
|
|
|
then click on <literal>Update this Twitter application's settings</literal>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2014-08-18 15:55:27 +00:00
|
|
|
Now click <literal>API Keys</literal> tab. Copy <literal>API key</literal> and <literal>API secret</literal> from the
|
2015-02-21 01:08:57 +00:00
|
|
|
<link xlink:href="https://dev.twitter.com/apps">Twitter Developer Console</link> into the settings
|
2014-01-17 17:21:44 +00:00
|
|
|
page in the Keycloak Admin Console as the <literal>Key</literal> and <literal>Secret</literal>. Then click
|
|
|
|
<literal>Save</literal> in the Keycloak Admin Console to enable login with Twitter.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
2014-01-21 14:01:03 +00:00
|
|
|
<tip>
|
|
|
|
<para>
|
|
|
|
Twitter doesn't allow <literal>localhost</literal> in the redirect URI. To test on a local server
|
|
|
|
replace <literal>localhost</literal> with <literal>127.0.0.1</literal>.
|
|
|
|
</para>
|
|
|
|
</tip>
|
2014-01-17 17:21:44 +00:00
|
|
|
</section>
|