Egg::Model::Auth::API::DBIC - API component to access attestation data base by using DBIC.


Egg-Release-Authorize documentation  | view source Contained in the Egg-Release-Authorize distribution.

Index


NAME

Top

Egg::Model::Auth::API::DBIC - API component to access attestation data base by using DBIC.

SYNOPSIS

Top

  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');

DESCRIPTION

Top

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.

CONFIGURATION

Top

Additionally, there is a common configuration to API class.

see Egg::Model::Auth::Base::API.

model_name

Label name to acquire model of attestation data.

search_attr

It sets it if there is an option to pass it to the search method of DBIC.

METHODS

Top

myname

Own API label name is returned.

restore_member ([LOGIN_ID])

The data of LOGIN_ID is acquired from the attestation data base, and the HASH reference is returned.

SEE ALSO

Top

Egg::Release, Egg::Model::Auth, Egg::Model::Auth::Base::API, Egg::Release::DBI, DBIx::Class::ResultClass::HashRefInflator,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release-Authorize documentation  | view source Contained in the Egg-Release-Authorize distribution.