Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Basic http authentication in Perl

by sutch (Curate)
on Mar 23, 2001 at 04:44 UTC ( #66528=note: print w/ replies, xml ) Need Help??


in reply to Basic http authentication in Perl

If you want to do this with mod_perl on an Apache server, there's a great book called Writing Apache Modules with Perl and C. And here's a sample chapter on Authentication & Authorization.


Comment on Re: Basic http authentication in Perl
Re: Re: Basic http authentication in Perl
by smr (Initiate) on Mar 23, 2001 at 05:08 UTC
    Thanks for your quick reply!

    I think I will find my answers there, but it seems to me that this is much more complicated in Perl than it was in PHP.

    Bye

    Sven

      I believe that you may also use CGI.pm to do handle basic authentication, but I've moved completely away from basic authentication (and the annoying popup windows) to creating HTML forms for login.

      The amount of complication really depends on your web server and how you want to use basic authentication. With Apache you can use an .htaccess file to require users to login with a username and password. I've rarely used that method because I was not able to find a way to log users out or to change identities--I wanted more control. If you are looking for the least complex method of authentication, I recommend that you check your web server's documentation.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://66528]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (14)
As of 2014-10-30 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls