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

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

Serving Software Downloads in 956 Categories, Downloaded 50.241.903 Times

CGI::Application::Plugin::Authorization 0.05

  Date Added: February 23, 2010  |  Visits: 7.254

CGI::Application::Plugin::Authorization

Report Broken Link
Printer Friendly Version


Product Homepage
Download (93 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
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::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  
Database Tools  -  jxDBCon - JDBC driver framework 1.0
jxDBCon a framework to ease the development JDBC drivers. By using it you can concentrate on the tasks specific to your DBMS and benefit from the generic solutions provided by jxDBCon. jxDBCon contains a featureful driver implementation for...
375.57 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  
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  
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  
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  
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  -  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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
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