12-31-2018
Quote:
A number of people have asked me about the best way to develop some cool new web app for UNIX.COM.
..............................................................
Thanks Neo(wish my luck since I am going to start from scratch). Could you please provide a web service for getting users details. I am going to install V studio in my machine and will try my BEST to achieve from it(basically first step will be printing the data from Webservice).
Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
6 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i have a network drive (samba) mounted on to my PC and also i have SSH client on my machine. however i need to run applications/commands on a unix server from the middle of a different executable(windows compatable one). so i need to connect to the unix server from SSH through the... (1 Reply)
Discussion started by: megastar
1 Replies
2. UNIX for Dummies Questions & Answers
Hi guys, may I know what kind of security applications do UNIX and Windows have in common? This is related to a project that is approaching its deadline, so would you all please be kind enough to help me? Thank You. (0 Replies)
Discussion started by: austintham
0 Replies
3. UNIX for Dummies Questions & Answers
Hello all ,
My father has been running the last version of unix before all the liscensing began 20 or so years ago. In his particular field his programmer has written a great deal of software to work with this version. Emulating so newer computers could speak to the unix server as well. Im sure... (6 Replies)
Discussion started by: Bill78
6 Replies
4. UNIX for Dummies Questions & Answers
I need to rebuild an application that developed in unix environment and run in windows OS with cygwin. so How can I rebuild from the source code?
is there any one who said something on this regard? (2 Replies)
Discussion started by: bejirond
2 Replies
5. Shell Programming and Scripting
Hi,
I have a unix server, I want to know which user applicaions are running on that server. Is there any command ?
Thanks (1 Reply)
Discussion started by: nag_sathi
1 Replies
6. UNIX and Linux Applications
Hello,
We are planning a migration from UNIX (HP-UX, AIX, Solaris) to Linux on AZURE.
I know it sounds like extremely complicated :( That's why we need your help :)
We are at the beggining of stage.
We need to categorize the types of applications (software) that generally runs on UNIX... (3 Replies)
Discussion started by: anton.robidson
3 Replies
LEARN ABOUT DEBIAN
plack::middleware::auth::basic
Plack::Middleware::Auth::Basic(3pm) User Contributed Perl Documentation Plack::Middleware::Auth::Basic(3pm)
NAME
Plack::Middleware::Auth::Basic - Simple basic authentication middleware
SYNOPSIS
use Plack::Builder;
my $app = sub { ... };
builder {
enable "Auth::Basic", authenticator => &authen_cb;
$app;
};
sub authen_cb {
my($username, $password) = @_;
return $username eq 'admin' && $password eq 's3cr3t';
}
DESCRIPTION
Plack::Middleware::Auth::Basic is a basic authentication handler for Plack.
CONFIGURATION
authenticator
A callback function that takes username and password supplied and returns whether the authentication succeeds. Required.
Authenticator can also be an object that responds to "authenticate" method that takes username and password and returns boolean, so
backends for Authen::Simple is perfect to use:
use Authen::Simple::LDAP;
enable "Auth::Basic", authenticator => Authen::Simple::LDAP->new(...);
realm
Realm name to display in the basic authentication dialog. Defaults to restricted area.
LIMITATIONS
This middleware expects that the application has a full access to the headers sent by clients in PSGI environment. That is normally the
case with standalone Perl PSGI web servers such as Starman or HTTP::Server::Simple::PSGI.
However, in a web server configuration where you can't achieve this (i.e. using your application via Apache's mod_cgi), this middleware
does not work since your application can't know the value of "Authorization:" header.
If you use Apache as a web server and CGI to run your PSGI application, you can either a) compile Apache with
"-DSECURITY_HOLE_PASS_AUTHORIZATION" option, or b) use mod_rewrite to pass the Authorization header to the application with the rewrite
rule like following.
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
AUTHOR
Tatsuhiko Miyagawa
SEE ALSO
Plack
perl v5.14.2 2012-06-21 Plack::Middleware::Auth::Basic(3pm)