Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Re: mod_perl web app design considerationsby andye (Curate) |
on Sep 04, 2002 at 01:50 UTC ( [id://194965]=note: print w/replies, xml ) | Need Help?? |
But for this to work, wouldn't I have to implement my own Apache module to intercept requests and do authentiation and authorization based on the value of the requested URI?
Rather happily, that's an awful lot easier than it sounds. A skeleton authentication handler looks like this: (that'll authenticate on the *presence* of both a username and password, via HTTP Basic Auth - obviously you'd want to substitute a real-world authentication scheme).
The Eagle book gives full details, and some of it seems to be online here: hth, andye.
In Section
Meditations
|
|