Configuring Twitter Login within PConfiguring external login providers within Plato eases the sign-up or account creation process for your end users. This can encourage participation as users don't need to create yet another web account and instead can use there preferred login provider to automatically sign-in to Plato.
In this article we'll demonstrate the steps necessary to allow your users to login to your Plato installation using there existing twitter account.
To allow users to login to Plato via twitter you'll first need to enable the Plato Authentication Twitter module. This module is provided with Plato 1.0.7 and above. To enable this module visit your Plato Features page and type "twitter" into the search box along the top.
Within the list of results you'll see Plato Authentication Twitter. Click the Enable button to the right of the Plato Authentication Twitterresult to enable this module.
Once Plato Authentication Twitter is enabled you'll notice a new Twitter link appears under Settings on the left within the Plato dashboard navigation. From the new Settings > Twitter page you can now enter the Consumer Key & Consumer Secret necessary to allow your users to login to Plato using twitter.
Obtaining your twitter consumer key & secret
Before users can login to Plato via twitter you need to first create an application wit twitter. Each application once created will provide you with a consumer key and consumer secret. You will need both the consumer key & secret to plug-in to Plato via the Settings > Twitter page.
Twitter App Dashboard
To obtain your twitter consumer key and secret create your application here...
- Click the "Create new app" button within the top right of your twitter app dashboard
- Provide name for your app
- When prompted for your call back URL this should be "https://yourplatourl.com/signin-twitter". Where "yourplatourl.com" would of course be replaced with your real URL.
- Once the app has been created visit the details page for you app from the twitter app dashboard and click Keys & tokens. From the keys & tokens area you should find your applications "Consumer Key" & "Consumer Secret".
- Copy both the consumer key and consumer secret into the Settings > Twitter page within Plato
You can see the Settings > Twitter page accessible via the Plato dashboard shown below...
TIP For authentication you only need to configure the consumer key and consumer secret fields. You do not need to provide the access token or access token secret. These fields can be left empty on the Settings > Twitter page within Plato and they won't impact authentication.
Testing Twitter Login
After entering the twitter consumer key & consumer secret into the Twitter Settings page within Plato and saving your changes you should notice a new option appear on your Plato login page that will allow users to login via Twitter. You can see this below...
You can use the Login with Twitter button to test your twitter login flow.
We hope this article helped you configure twitter login within Plato. Should you encounter any issues or have any questions please don't hesitate to post within our Q&A area and we will assist as quickly as possible.