I (like everybody else) have a site that is wholy
dynamically generated. As such, I can't alway set an auth realm in the config or
in .htaccess. What I'd like to do is an access handler like this:
sub handler {
my $r = shift; if ($r->uri =~ m/$some_magic_pattern/|) { $r->auth_name($custom_realm); $r->auth_type('Basic'); $r->dir_config('require valid-user'); return
'OK';
} return DECLINED; }
Obviously these routines don't work this way... Any
thoughts?
---
Rodney Broom Programmer: Desert.Net |
- Re: Setting an auth realm dynamically Rodney Broom
- Re: Setting an auth realm dynamically Doug MacEachern