Changeset 11428 for lang/perl/Apache2-AuthHatena
- Timestamp:
- 05/12/08 12:40:56 (6 months ago)
- Location:
- lang/perl/Apache2-AuthHatena/trunk
- Files:
-
- 3 added
- 4 modified
-
Changes (modified) (2 diffs)
-
MANIFEST (modified) (1 diff)
-
Makefile.PL (modified) (2 diffs)
-
lib/Apache2/AuthHatena.pm (modified) (3 diffs)
-
t/TEST.PL (added)
-
t/conf (added)
-
t/conf/extra.last.conf.in (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Apache2-AuthHatena/trunk/Changes
r11425 r11428 1 1 Revision history for Perl extension Apache2::AuthHatena. 2 3 0.04 Mon May 12 12:37:18 JST 2007 4 - removed harmful code for AuthType directive. 2 5 3 6 0.03 Sun Jun 10 22:45:30 2007 … … 8 11 9 12 0.01 Fri Jun 8 00:13:01 2007 10 - original version; created by h2xs 1.23 with options11 -X -A -n Apache2::AuthHatena13 - original version; created by h2xs 1.23 with options 14 -X -A -n Apache2::AuthHatena 12 15 -
lang/perl/Apache2-AuthHatena/trunk/MANIFEST
r11425 r11428 4 4 README 5 5 t/Apache2-AuthHatena.t 6 t/TEST.PL 7 t/conf/extra.last.conf.in 6 8 lib/Apache2/AuthHatena.pm 7 9 META.yml Module meta-data (added by MakeMaker) -
lang/perl/Apache2-AuthHatena/trunk/Makefile.PL
r11425 r11428 1 1 use 5.008; 2 2 use ExtUtils::MakeMaker; 3 use Apache::TestMM qw(test clean); 3 4 5 Apache::TestMM::filter_args(); 6 Apache::TestMM::generate_script('t/TEST'); 4 7 5 8 # See lib/ExtUtils/MakeMaker.pm for details of how to influence … … 9 12 VERSION_FROM => 'lib/Apache2/AuthHatena.pm', # finds $VERSION 10 13 PREREQ_PM => { 14 Test::MOre => 0.32, 11 15 mod_perl2 => 2.000001, 12 16 Class::Accessor::Fast => 0, -
lang/perl/Apache2-AuthHatena/trunk/lib/Apache2/AuthHatena.pm
r11425 r11428 20 20 use Hatena::API::Auth; 21 21 22 our $VERSION = '0.0 3';22 our $VERSION = '0.04'; 23 23 24 24 my @directives = ( … … 44 44 errmsg => 'HatenaAuthCallback http://sample.com/yourcallback', 45 45 }, 46 {47 name => 'AuthType',48 func => __PACKAGE__ . '::AuthType',49 req_override => Apache2::Const::OR_AUTHCFG,50 args_how => Apache2::Const::TAKE1,51 errmsg => 'AuthType Hatena',52 },53 46 ); 54 47 55 eval { Apache2::Module::add(__PACKAGE__, \@directives); }; 48 eval { 49 Apache2::Module::add(__PACKAGE__, \@directives); 50 Apache2::ServerUtil->server->push_handlers( 51 PerlAuthenHandler => \&authen_handler 52 ); 53 }; 56 54 57 55 sub HatenaAuthKey { … … 70 68 $i = Apache2::Module::get_config( __PACKAGE__, $params->server); 71 69 $i->{'callback'} = $arg; 72 }73 74 sub AuthType {75 my ($i, $params, $arg) = @_;76 if ($arg eq 'Hatena') {77 Apache2::ServerUtil->server->push_handlers(PerlAuthenHandler => \&authen_handler);78 }79 70 } 80 71
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)