Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.543.384 Times

CGI::Application::Plugin::Authorization 0.05

  Date Added: February 23, 2010  |  Visits: 924

CGI::Application::Plugin::Authorization

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



CGI::Application::Plugin::Authorization is an authorization framework for CGI::Application. SYNOPSIS use base qw(CGI::Application); use CGI::Application::Plugin::Authentication; use CGI::Application::Plugin::Authorization; # default config for runmode authorization __PACKAGE__->authz->config( DRIVER => [ HTGroup, FILE => htgroup ], ); # Using a named configuration to distinguish it from # the above configuration __PACKAGE__->authz(dbaccess)->config( DRIVER => [ DBI, DBH => $self->dbh, TABLES => [user, access], JOIN_ON => user.id = access.user_id, CONSTRAINTS => { user.name => __USERNAME__, access.table => __PARAM_1__, access.item_id => __PARAM_2__ } ], ); sub admin_runmode { my $self = shift; # User must be in the admin group to have access to this runmode return $self->authz->forbidden unless $self->authz->authorize(admin); # rest of the runmode ... } sub update_widget { my $self = shift; my $widget = $self->query->param(widget_id); # Can this user edit this widget in the widgets table? return $self->authz->forbidden unless $self->authz(dbaccess)->authorize(widgets => $widget); # save changes to the widget ... } CGI::Application::Plugin::Authorization adds the ability to authorize users for specific tasks. Once a user has been authenticated and you know who you are dealing with, you can then use this plugin to control what that user has access to. It imports two methods (authz and authorization) into your CGI::Application module. Both of these methods are interchangeable, so you should choose one and use it consistently throughout your code. Through the authz method you can call all the methods of the CGI::Application::Plugin::Authorization plugin. amed Configurations There could be multiple ways that you may want to authorize actions in different parts of your code. These differences may conflict with each other. For example you may have runmode level authorization that requires that the user belongs to a certain group. But secondly, you may have row level database authorization that requires that the username column of the table contains the name of the current user. These configurations would conflict with each other since they are authorizing using different information. To solve this you can create multiple named configurations, by specifying a unique name to the c< authz > method. __PACKAGE__->authz(dbaccess)->config( DRIVER => [ DBI, ... ], ); # later $self->authz(dbaccess)->authorize(widgets => $widget_id);.

Requirements: No special requirements
Platforms: Linux
Keyword: Authorization Authorize Authz Cgi Cgiapplicationpluginauthorization Driver Framework Libraries Package Programming User Widget
Users rating: 0/10

License: Freeware Size: 17.41 KB
USER REVIEWS
More Reviews or Write Review


CGI::APPLICATION::PLUGIN::AUTHORIZATION RELATED
Libraries  -  CGI::Test 0.104
CGI::Test is a CGI regression test framework. SYNOPSIS # In some t/script.t regression test, for instance use CGI::Test; # exports ok() my $ct = CGI::Test->new( -base_url => "http://some.server:1234/cgi-bin", -cgi_dir =>...
51.2 KB  
Programming  -  CGI::Session::Driver::aggregator 0.03
CGI::Session::Driver::aggregator is a CGI::Session driver to aggregate some CGI::Session drivers. SYNOPSIS use CGI::Session; use CGI::Session::Driver::aggregator::Drivers; use DBI; $dbh =...
30.72 KB  
Libraries  -  CGI::Application::Plugin::RateLimit 1.0
CGI::Application::Plugin::RateLimit is a plugin for CGI::Application which provides protection against a user calling a runmode too frequently. A typical use-case might be a contact form that sends email. Youd like to allow your users to send...
7.17 KB  
File Utilities  -  Linux kernel webcams Driver GSPCA / SPCA5xx 01.00.20
With the appearance of the digital world, "creations" are getting slowly detached from their material supports. Images, music, words and algorithms furrow the planet day and night in front of the wide open eyes of the merchants. The...
193.54 KB  
Audio Tools  -  Grammidity 1.0
Grammidity project is a Java-based framework for evolutionary programming. It can be used to evolve solutions to problems, or to evolve "objects" under user control. It has a limitless range of possible applications. This program has been...
829.44 KB  
Puzzles  -  Tourk - Programming game framework 9
Tourk is a framework for developing programming games, where two (or more) people write game playing code (like Deep Blue) and a controller puts the two against each other.
32.78 KB  
Blog  -  Subtle for Wordpress 0.391
Subtle is a customizable Wordpress theme framework with built-in i10n, widget handling, simple dashboard administration, and support for FeedBurner and Wordpress Multiuser.
409.6 KB  
Development Editors  -  DynO++ Dynamic C++ Framework 0.1.0
DynO++ is a C++ framework for dynamic programming. The main idea is to allow the compilation of each C++ object as a separate module. Thanks to that each object, instead of being statically linked to the application at compile time, is dynamically...
245.76 KB  
Programming  -  ParaGUI 1.1.7
ParaGUI is a cross-platform high-level application framework and GUI (graphical user interface) library. It can be compiled on various platforms (Linux, Win32, BeOS, MacOS, ...) ParaGUI is based on the Simple DirectMedia Layer (SDL). ParaGUI...
409.6 KB  
Log Analyzers  -  LMF 0.5
LMF project is a flexible log monitoring framework that allows the user to match text from log files, using perl regular expressions and capturing parentheses (pattern). An optional external command (trigger) will be executed when a...
16.38 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB