Name

CatalystX::Usul::Model::Identity - Identity model with multiple backend stores

Version

0.6.$Revision: 1165 $

Synopsis

package MyApp::Model::Identity;

use base qw(CatalystX::Usul::Model::Identity);

1;

Description

Provides an identity model with multiple backend data stores. The model supports; create, read, update and delete operations in addition to; authentication, password changing, password setting, account registration and account activation

Subroutines/Methods

COMPONENT

Constructor creates instances of the subclasses. The roles and users subclasses a loaded at runtime since the backend store is a config option

auth_realms

Returns a hash ref whose keys are the realm names and whose values are the model class names

build_per_context_instance

Calls build_per_context_instance on each of the subclasses; aliases, profiles, roles, and users

default_realm

Returns the name of the default realm

find_user

Calls and returns the value from the find_user method on the users subclass

get_identity_model_name

Looks the supplied realm name up in the "auth_realms" and returns the model class name. The realm name defaults to the default_realm attribute

Diagnostics

None

Configuration and Environment

None

Dependencies

CatalystX::Usul::Model
Scalar::Util

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Copyright (c) 2008 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE