Egg::Model::Auth::API::DBIC - API component to access attestation data base by using DBIC.
package MyApp::Model::Auth::MyAuth; .......... __PACKAGE__->config( dbic => { model_name => 'dbic_model_name', search_attr => '.....', id_field => 'user_id', password_field => 'password', active_field => 'active', group_field => 'a_group', }, ); __PACKAGE__->setup_api('DBIC');
It is API component to access the attestation data base by using Egg::Model::DBIC.
The setting of 'dbic' is added to the configuration to use it and 'DBIC' is set by 'setup_api' method.
Additionally, there is a common configuration to API class.
see Egg::Model::Auth::Base::API.
Label name to acquire model of attestation data.
It sets it if there is an option to pass it to the search method of DBIC.
Own API label name is returned.
The data of LOGIN_ID is acquired from the attestation data base, and the HASH reference is returned.
Egg::Release, Egg::Model::Auth, Egg::Model::Auth::Base::API, Egg::Release::DBI, DBIx::Class::ResultClass::HashRefInflator,
Masatoshi Mizuno <lushe@cpan.org>
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.
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.
To install Egg::Release::Authorize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release::Authorize
CPAN shell
perl -MCPAN -e shell install Egg::Release::Authorize
For more information on module installation, please visit the detailed CPAN module installation guide.