[Bps-public-commit] jifty-plugin-authentication-twitter branch, master, updated. c84b257e5eab394127bcc4059281c32f1a8016fe

Shawn Moore sartak at bestpractical.com
Thu Jun 3 02:29:16 EDT 2010


The branch, master has been updated
       via  c84b257e5eab394127bcc4059281c32f1a8016fe (commit)
      from  ce6de85fb03bc1d5f5e6f33f1c223450ed3b0599 (commit)

Summary of changes:
 lib/Jifty/Plugin/Authentication/Twitter.pm |   66 ++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 0 deletions(-)
 create mode 100644 lib/Jifty/Plugin/Authentication/Twitter.pm

- Log -----------------------------------------------------------------
commit c84b257e5eab394127bcc4059281c32f1a8016fe
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Jun 3 02:29:55 2010 -0400

    Authentication/Twitter.pm

diff --git a/lib/Jifty/Plugin/Authentication/Twitter.pm b/lib/Jifty/Plugin/Authentication/Twitter.pm
new file mode 100644
index 0000000..8e8b432
--- /dev/null
+++ b/lib/Jifty/Plugin/Authentication/Twitter.pm
@@ -0,0 +1,66 @@
+use strict;
+use warnings;
+
+package Jifty::Plugin::Authentication::Twitter;
+use base qw/Jifty::Plugin/;
+
+our $VERSION = '0.01';
+
+=head1 NAME
+
+Jifty::Plugin::Authentication::Twitter - Twitter authentication plugin for Jifty
+
+=head2 DESCRIPTION
+
+Provides standalone Twitter authentication for your Jifty application.
+It adds the column C<twitter_name> to your User model.
+
+=head1 SYNOPSIS
+
+First you must tell Twitter about your application at
+L<http://twitter.com/oauth_clients>. After that, add this plugin, filling in
+the consumer key and consumer secret fields in your F<etc/config.yml> under the
+C<framework> section:
+
+    Plugins:
+        - Authentication::Twitter:
+            consumer_key: xxx
+            consumer_secret: xxx
+
+In your User model, you'll need to include the line
+
+    use Jifty::Plugin::Authentication::Twitter::Mixin::Model::User;
+
+B<after> your schema definition (which may be empty).  You may also wish
+to include
+
+See L<Jifty::Plugin::Authentication::Twitter::View> for the provided templates
+and L<Jifty::Plugin::Authentication::Twitter::Dispatcher> for the URLs handled.
+
+=cut
+
+our %CONFIG = ( );
+
+=head2 init
+
+=cut
+
+sub init {
+    my $self = shift;
+    %CONFIG  = @_;
+}
+
+=head1 AUTHOR
+
+Shawn M Moore
+
+=head1 LICENSE
+
+Copyright 2010 Best Practical Solutions, LLC.
+
+This program is free software and may be modified and distributed under the same terms as Perl itself.
+
+=cut
+
+1;
+

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list