Skip to main content

Twitter based login for Plone

Project description

Introduction

A PAS plugin to login into a Plone Site using Twitter. Provides the following features:

  • Log in to a Plone site through Twitter: when a user requests to log in to the Plone site he will be redirected to Twitter so that he provides the credentials there, then he will be redirected back to the Plone site and will be identified there.

  • The user will be a standard Plone user, so Roles or Group membership can be set.

  • Minimal user information is kept in Plone such as full name, screen-name Twitter ID and twitter photo of the user. This is kept to avoid permanent requests to Twitter API. This information is refreshed each time the user logs in to the site.

Installation and getting started

Add cs.auth.twitter to your buildout.cfg’s eggs list. It will install all required dependencies.

You have to add a configuration similar to this to the [instance] section of your buildout file:

zope-conf-additional =
   <product-config beaker>
       session type     file
       session.data_dir ${buildout:directory}/var/sessions/data
       session.lock_dir ${buildout:directory}/var/sessions/lock
       session.key      beaker.session
       session.secret   this-is-my-secret-${buildout:directory}
   </product-config>

This is needed because we are using collective.beaker to handle Twitter login session information.

Install the product in the Plone Control Panel. This will create a “Login with Twitter” action into the personal tools toolbar in Plone.

Create a new Twitter app at https://dev.twitter.com/apps/new and fill in the required data in the plugin’s control panel form.

Credit

This product contains code written for collective.twitter.accounts by Franco Pellegrini (@frapell) and Hector Velarde (@hvelarde)

Compatibility

Plone 4.x

Changelog

1.0.1 (2014-10-10)

  • Fix dependencies includes [erral]

1.0 (2014-10-10)

  • Remove roles plugin implementation [erral]

  • Fix user search [erral]

  • Fix to add the plugin through the ZMI [erral]

  • Use Twitter API directly to get user information [erral]

  • Fix Access Token Request [erral]

1.0b3 (2012-10-18)

  • Implement IRolePlugin again to grant Member role [erral]

1.0b2 (2012/10/16)

  • Inherit from PloneUser instead of PropertiedUser [erral]

  • Remove IRolesPlugin implementation [erral]

  • Add missing oauth2 dependency [erral]

  • Change user action name not to clash with Plone’s [erral]

1.0b1 (2012/07/13)

  • Initial release [erral]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cs.auth.twitter-1.0.1.zip (35.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page