Subject: | recognize_user() should retur DECLINED when not recognized |
I want to combine Apache2::AuthCookie with optional basic auth for
legacy reasons. I wanted to use ->recognize_user() as the first
PerlAuthenHandler, and the other auth module as the second
PerlAuthenHandler. The problem is that ->recognize_user returns OK even
when no user is recognized, so no further handlers of the same type are
executed. I have wrapped recognize_user() to my own method
recognize_or_decline() in my subclass of Apache2::AuthCookie, which runs
recognize_user(), and then returns DECLINED iff recognize_user()
returned OK but no $r->user is set.
I think modifying the ->recognize_user() method to return DECLINED when
no user is recognized would not hurt the intended use in
PerlFixupHandler (as described in the POD), and would help in my case.
Please consider changing the behaviour of ->recognize_user() to the one
I suggest above. Thanks!