Name : perl-HTTP-Server-Simple-Authen
| |
Version : 0.04
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.42
| Date : 2024-08-05 19:24:08
|
Group : Development/Libraries/Perl
| Source RPM : perl-HTTP-Server-Simple-Authen-0.04-1.42.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Authentication plugin for HTTP::Server::Simple
|
Description :
HTTP::Server::Simple::Authen is an HTTP::Server::Simple plugin to allow HTTP authentication. Authentication scheme is pluggable and you can use whatever Authentication protocol that Authen::Simple supports.
You can use \'authenticate\' method whatever you want to authenticate the request. The method returns \'$username\' taken from the request if the authentication is successful, and \'undef\' otherwise. The code in SYNOPSIS requires authentication for all the requests and behaves just the same as Apache\'s \'Require valid-user\'.
The following code will explain more about conditioning.
sub handle_request { my($self, $cgi) = AATT_; if ($cgi->path_info =~ m!/foo/!) { my $user = $self->authenticate; return unless defined($user) && length($user) == 8; } ... }
This means all the requests to URL \'/foo/\' require to be authenticated, and usernames with 8 chars long are authorized.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-H/openSUSE_Tumbleweed/noarch |