NAME

Egg::Plugin::SessionKit::Auth::File - It attests it by the text data.

SYNOPSIS

use Egg qw/ SessionKit::Auth::File /;
__PACKAGE__->egg_startup(
  .......
  ...
  plugin_session=> {
    data_path => '<$e.dir.etc>/members.txt',
    separator => "\s+",
    constant  => [qw/ uid psw active email nickname /],
    .......
    ...
    },

DESCRIPTION

The text file base is attested by Egg::Plugin::SessionKit::Auth.

Please refer to the document of Egg::Plugin::SessionKit::Auth.

CONFIGURATION

data_path

PATH of text file used as attestation data.

Please set default.

separator

Regular expression used for delimiter of data.

For instance, if they are the following data, '\:' is set.

user1:pasword1:....
user2:pasword2:....

It is '\s+\:\s+' if there is a possibility that the blank mixes with the delimitation.

user1  :  pasword1  :  ....
user2  :  pasword2  :  ....

Default is '\t'.

constant

List of name that allocates delimited data.

constant => [qw/ member_code uid psw active age address ... /],

METHODS

restore ( [USER_ID] )

Data is returned by the HASH reference when found looking for USER_ID from the attestation data. 0 returns when not found.

SEE ALSO

Egg::Plugin::SessionKit, Egg::Plugin::SessionKit::Auth, Egg::Plugin::SessionKit::Auth::Crypt::CBC, Egg::Plugin::SessionKit::Auth::Crypt::MD5, Egg::Plugin::SessionKit::Auth::Crypt::Plain, Egg::Release,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT

Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.