Changeset 2210

Show
Ignore:
Timestamp:
04/26/07 09:22:51
Author:
miyagawa
Message:

Checking in changes prior to tagging of version 0.01. Changelog diff is:

=== Changes
==================================================================
--- Changes (revision 6511)
+++ Changes (local)
@@ -1,4 +1,4 @@

Revision history for Perl extension Catalyst::Plugin::Authentication::Credential
AOL

- 0.01 Tue Apr 17 16:58:30 2007
+0.01 Tue Apr 17 16:58:30 2007

- original version

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Catalyst-Plugin-Authentication-Credential-AOL/trunk/Changes

    r2207 r2210  
    11Revision history for Perl extension Catalyst::Plugin::Authentication::Credential::AOL 
    22 
    3   0.01  Tue Apr 17 16:58:30 2007 
     30.01  Tue Apr 17 16:58:30 2007 
    44        - original version 
  • Catalyst-Plugin-Authentication-Credential-AOL/trunk/lib/Catalyst/Plugin/Authentication/Credential/AOL.pm

    r2207 r2210  
    7777__END__ 
    7878 
     79=for stopwords OpenID OpenAuth 
     80 
    7981=head1 NAME 
    8082 
    81 Catalyst::Plugin::Authentication::Credential::AOL - 
     83Catalyst::Plugin::Authentication::Credential::AOL - AOL OpenAuth credential 
    8284 
    8385=head1 SYNOPSIS 
    8486 
    85   use Catalyst::Plugin::Authentication::Credential::AOL; 
     87  use Catalyst qw/ 
     88      Authentication 
     89      Authentication::Credential::AOL 
     90      Session 
     91      Session::Store::FastMmap 
     92      Session::State::Cookie 
     93  /; 
     94 
     95  MyApp->config( 
     96      authentication => { 
     97          use_session => 1, # default 1. see C::P::Authentication 
     98          aol => { 
     99              devId => 'AOL_DEVELOPER_TOKEN', 
     100          }, 
     101      }, 
     102  ); 
     103 
     104  sub login_aol : local { 
     105      my($self, $c) = @_; 
     106 
     107      if ($c->authenticate_aol) { 
     108          # login succeed 
     109          $c->res->redirect("/"); 
     110      } 
     111 
     112      # login failed 
     113  } 
     114 
     115  # in your templates 
     116  <a href="[% c.uri_for('/login_aol') | html %]">Sign in via AOL</a> 
    86117 
    87118=head1 DESCRIPTION 
    88119 
    89 Catalyst::Plugin::Authentication::Credential::AOL is 
     120Catalyst::Plugin::Authentication::Credential::AOL is a Catalyst 
     121Authentication credential plugin for AOL OpenAuth. Since AOL does 
     122OpenID you can just use OpenID credential, but OpenAuth gives more 
     123granular control over authentication. 
    90124 
    91125=head1 AUTHOR 
     
    100134=head1 SEE ALSO 
    101135 
    102 L<Catalyst::Plugin::Authentication>, L<http://dev.aol.com/openauth> 
     136L<Catalyst::Plugin::Authentication>, 
     137L<Catalyst::Plugin::Authentication::Credential::OpenID>, 
     138L<http://dev.aol.com/openauth> 
    103139 
    104140=cut