Name : perl-Dancer-Plugin-Authorize
| |
Version : 1.110720
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 7.75
| Date : 2024-08-05 20:47:42
|
Group : Development/Libraries/Perl
| Source RPM : perl-Dancer-Plugin-Authorize-1.110720-7.75.src.rpm
|
Size : 0.06 MB
| |
Packager : (none)
| |
Summary : DEPRECATED! Please use L< Dancer::Plugin::Auth::RBAC>
|
Description :
Dancer::Plugin::Authorize is an authentication framework and role-based access control system. As a role-based access control system Dancer::Plugin::Authorize can be complex but will give you the most flexibilty over all other access control philosophies.
The Dancer::Plugin::Authorize plugin provides your application with the ability to easily authenticate and restrict access to specific users and groups by providing a tried and tested RBAC (role-based access control) system. Dancer::Plugin::Authorize provides this level of sophistication with minimal configuration.
Dancer::Plugin::Authorize exports the auth() and authd() keywords:
$auth = auth($login, $pass) # new authorization instance $auth->asa($role) # check if the authenticated user has the specified role $auth->can($operation) # check if the authenticated user has permission $auth->can($operation, $action) # to perform a specific action $auth->roles(AATTroles) # get or set roles for the current logged in user $auth->errors() # authentication errors if any $auth->revoke() # revoke authorization (logout)
return authd() # is the current user authorized?
The Dancer::Plugin::Authorize authentication framework relies on the Dancer::Plugin::Authorize::Credentials namespace to do the actual authentication, and likewise relies on the Dancer::Plugin::Authorize::Permissions namespace to handle access control. The following configuration example is based on Dancer::Plugin::Authorize::Credentials::Config and Dancer::Plugin::Authorize::Permissions::Config. This framework also ship with Dancer::Plugin::Authorize::Credentials::SQLite, Dancer::Plugin::Authorize::Credentials::MySQL, Dancer::Plugin::Authorize::Credentials::PostrgeSQL which are arguably easier to setup and utilize.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-D/openSUSE_Tumbleweed/noarch |