On May 11, 2020, at 8:58 AM, Scott Alexander <scott.alexan...@humak.fi> wrote:
> I've included using 
> https://manpages.debian.org/unstable/libapache2-authcookie-perl/Apache2_4::AuthCookie.3pm.en.html
>  as an example 
> 
> # In httpd.conf or .htaccess:
> PerlModule Sample::Apache2::AuthCookieHandler
> PerlSetVar WhatEverPath / ..... 
> 
> to my ssl.conf file
> 
> No changes made to httpd.conf or ssl.conf.

Those two statements seem to be conflicting? I keep my 
authentication/authorization information in httpd.conf, personally.

> When trying to access the page I get the errors above. 

That sample configuration from the POD assumes that you are subclassing 
Apache2::AuthCookie and that the name of your subclass is 
Sample::Apache2::AuthCookieHandler. It's meant to be illustrative. I'm guessing 
you don't actually have such a subclass. Try just removing the "Sample::" part. 
You can probably also find working examples in the tests in the "t" 
subdirectory.

> I've read this 
> https://metacpan.org/pod/distribution/Apache-AuthCookie/README.apache-2.4.pod
> which unfortunately doesn't make sense to me. 

That POD is meant for people developing (or porting from Apache 2.2.x) their 
own Perl modules for doing authentication and authorization under Apache 2.4.x. 
AuthCookie already handles all of this for you, assuming you only need or use 
AuthCookie. It might apply if you are subclassing from AuthCookie and you get 
into the gritty details, such as implementing your own AuthzProvider. Check out 
Apache2_4::AuthCookieDBI for an example of that.

https://metacpan.org/pod/Apache2_4::AuthCookieDBI

Regards,
Ed

Reply via email to