For apache 1, you might want to take a look at Apache::Filter to chain your own request handlers between Apache::PerlRun (something like MyAuthModule -> Apache::PerlRun(cgi script) -> MyOutputFilter.
Apache::Filter only allows you to do this with mod_perl handlers. IIRC you can do the same chaining natively in apache 2 without that restriction.