[Jifty-commit] r7207 - in plugins/Jifty-Plugin-Authentication-Facebook: . lib/Jifty/Plugin/Authentication
Jifty commits
jifty-commit at lists.jifty.org
Tue Jun 9 15:28:21 EDT 2009
Author: yves
Date: Tue Jun 9 15:28:21 2009
New Revision: 7207
Added:
plugins/Jifty-Plugin-Authentication-Facebook/Changes
plugins/Jifty-Plugin-Authentication-Facebook/README
plugins/Jifty-Plugin-Authentication-Facebook/t/00-load.t
Modified:
plugins/Jifty-Plugin-Authentication-Facebook/Makefile.PL
plugins/Jifty-Plugin-Authentication-Facebook/lib/Jifty/Plugin/Authentication/Facebook.pm
Log:
ready to upload to cpan
* update Makefile.PL for new Module::Install, all_from file
* add Changes and README
* add Author (from svn log) and copyright notice
* add minimal load test
Added: plugins/Jifty-Plugin-Authentication-Facebook/Changes
==============================================================================
--- (empty file)
+++ plugins/Jifty-Plugin-Authentication-Facebook/Changes Tue Jun 9 15:28:21 2009
@@ -0,0 +1,4 @@
+Revision history for Perl module Jifty::Plugin::Authentication::Facebook
+
+0.9 Tue, 09 Jun 2009 21:22:15 +0200
+ - original version for CPAN
Modified: plugins/Jifty-Plugin-Authentication-Facebook/Makefile.PL
==============================================================================
--- plugins/Jifty-Plugin-Authentication-Facebook/Makefile.PL (original)
+++ plugins/Jifty-Plugin-Authentication-Facebook/Makefile.PL Tue Jun 9 15:28:21 2009
@@ -1,11 +1,11 @@
-use inc::Module::Install 0.46;
+use inc::Module::Install;
name('Jifty-Plugin-Authentication-Facebook');
-version_from('lib/Jifty/Plugin/Authentication/Facebook.pm');
+all_from('lib/Jifty/Plugin/Authentication/Facebook.pm');
requires('Jifty');
requires('WWW::Facebook::API' => '0.3.6');
auto_install();
-tests(qw( t/*/t/*.t ));
+tests(qw( t/*.t ));
WriteAll;
Added: plugins/Jifty-Plugin-Authentication-Facebook/README
==============================================================================
--- (empty file)
+++ plugins/Jifty-Plugin-Authentication-Facebook/README Tue Jun 9 15:28:21 2009
@@ -0,0 +1,54 @@
+NAME
+ Jifty::Plugin::Authentication::Facebook - Facebook authentication plugin
+ for Jifty
+
+ DESCRIPTION
+ Provides standalone Facebook authentication for your Jifty application.
+ It adds the columns "facebook_name", "facebook_uid", "facebook_session",
+ and "facebook_session_expires" to your User model.
+
+SYNOPSIS
+ In your jifty config.yml under the "framework" section:
+
+ Plugins:
+ - Authentication::Facebook:
+ api_key: xxx
+ secret: xxx
+
+ You may set any options which the "new" method of WWW::Facebook::API
+ understands.
+
+ In your User model, you'll need to include the line
+
+ use Jifty::Plugin::Authentication::Facebook::Mixin::Model::User;
+
+ after your schema definition (which may be empty). You may also wish to
+ include
+
+ sub _brief_description { 'facebook_name' }
+
+ To use the user's Facebook name as their description.
+
+ See Jifty::Plugin::Authentication::Facebook::View for the provided
+ templates and Jifty::Plugin::Authentication::Facebook::Dispatcher for
+ the URLs handled.
+
+ init
+ api
+ Generates a new WWW::Facebook::API for the current user
+
+ get_login_url
+ Gets the login URL, preserving continuations
+
+ get_link_url
+ Gets the login URL used for linking, preserving continuations
+
+AUTHORS
+ Alex Vandiver
+
+LICENSE
+ Copyright 2005-2009 Best Practical Solutions, LLC.
+
+ This program is free software and may be modified and distributed under
+ the same terms as Perl itself.
+
Modified: plugins/Jifty-Plugin-Authentication-Facebook/lib/Jifty/Plugin/Authentication/Facebook.pm
==============================================================================
--- plugins/Jifty-Plugin-Authentication-Facebook/lib/Jifty/Plugin/Authentication/Facebook.pm (original)
+++ plugins/Jifty-Plugin-Authentication-Facebook/lib/Jifty/Plugin/Authentication/Facebook.pm Tue Jun 9 15:28:21 2009
@@ -111,4 +111,16 @@
return $self->api->get_login_url( next => $next );
}
+=head1 AUTHOR
+
+Alex Vandiver
+
+=head1 LICENSE
+
+Copyright 2005-2009 Best Practical Solutions, LLC.
+
+This program is free software and may be modified and distributed under the same terms as Perl itself.
+
+=cut
+
1;
Added: plugins/Jifty-Plugin-Authentication-Facebook/t/00-load.t
==============================================================================
--- (empty file)
+++ plugins/Jifty-Plugin-Authentication-Facebook/t/00-load.t Tue Jun 9 15:28:21 2009
@@ -0,0 +1,7 @@
+#!/usr/bin/env perl
+
+use warnings;
+use strict;
+
+use Test::More tests => 1;
+use_ok('Jifty::Plugin::Authentication::Facebook');
More information about the Jifty-commit
mailing list