Authz foo (was Re: mod_perl marketing)

[prev] [thread] [next] [Date index for 2004/11/30]

From: Geoffrey Young
Subject: Authz foo (was Re: mod_perl marketing)
Date: 18:19 on 30 Nov 2004

Randal L. Schwartz wrote:
>>>>>>"Geoffrey" == Geoffrey Young <geoff@xxxxxxxxxxxxxxx.xxx> writes:
> 
> 
> Geoffrey> if I understand the problem correctly (which I may not) I
> Geoffrey> think both those phases are probably wrong and a more
> Geoffrey> generic phase is probably best, like the PerlInitHandler.
> 
> Actually, now that I think about it a bit more, the question is "can
> this specific person access this resource?  If not [first visit, for
> example], do something else"
> 
> So it's really an Authz question.  And it should be handled by an
> internal redirect if the authz fails.  You want it *after* trans,
> access, and auth, so that you can determine resource, host-based
> permission, and identify the individual.

I think you have a point, but that it all really depends on your requirements.

typically one uses access phase for authentication based on non-user
credentials, such as ip address, browser type, etc.  for authen it's
typically user-provided credentials, such as username.  now, I suppose that
something like Apache::Motd could fall into the authen category, since it
assigns each "user" (a browser, not a person) a cookie which is used to
later identify the user and ultimately decide whether the user requires some
popup page.  and sure, you would probably want to use the authz phase for
that.  but there is also just reason to use the access phase, since the real
user hasn't proactively done anything to distinguish himself.

however, I'm not so sure that this particular example fits that model very
well - authz won't even run if you don't have a Requires directive, which
feels kind of limiting.  that is, do you want to waste your authen and authz
phases on a simple popup?  don't forget that the first authen and access
handler to return OK wins, so you only get one chance to validate your user
- if you choose to use that for a popup manager then you can't really run
_real_ authen/authz against that user.  at least not easily that I can see.

anyway, this is all probably academic, since I'm not really implementing
anything and probably can't see the big picture as a result.  but it is
interesting to talk about :)

--Geoff


        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

RE: mod_perl marketing
Adam Prime x443 16:19 on 30 Nov 2004

RE: mod_perl marketing
Adam Prime x443 17:00 on 30 Nov 2004

Re: mod_perl marketing
merlyn (Randal L. Schwartz) 17:28 on 30 Nov 2004

Re: mod_perl marketing
Jonathan Vanasco 17:34 on 30 Nov 2004

Re: mod_perl marketing
Geoffrey Young 17:40 on 30 Nov 2004

Re: mod_perl marketing
merlyn (Randal L. Schwartz) 18:03 on 30 Nov 2004

Authz foo (was Re: mod_perl marketing)
Geoffrey Young 18:19 on 30 Nov 2004

RE: mod_perl marketing
Adam Prime x443 18:23 on 30 Nov 2004

Re: mod_perl marketing
modperl 19:23 on 30 Nov 2004

Re: mod_perl marketing
Frank Wiles 19:30 on 30 Nov 2004

RE: mod_perl marketing
Clayton Cottingham 19:34 on 30 Nov 2004

Re: mod_perl marketing
Frank Wiles 19:39 on 30 Nov 2004

RE: mod_perl marketing
Clayton Cottingham 19:47 on 30 Nov 2004

Re: mod_perl marketing
Stas Bekman 19:55 on 30 Nov 2004

RE: mod_perl marketing
Clayton Cottingham 20:02 on 30 Nov 2004

Re: mod_perl marketing
Stas Bekman 20:09 on 30 Nov 2004

Re: mod_perl marketing
Dan Brian 20:32 on 30 Nov 2004

Re: mod_perl marketing
Stas Bekman 20:34 on 30 Nov 2004

Re: mod_perl marketing
Joe Schaefer 20:58 on 30 Nov 2004

Re: mod_perl marketing
Valerio_Valdez Paolini 23:22 on 30 Nov 2004

Re: mod_perl marketing
Jonathan Vanasco 20:12 on 30 Nov 2004

SV: mod_perl marketing
Arne Skjaerholt 20:25 on 30 Nov 2004

Re: mod_perl marketing
Ken Simpson 19:39 on 30 Nov 2004

Re: mod_perl marketing
Ken Simpson 23:00 on 30 Nov 2004

Re: mod_perl marketing
modperl 19:41 on 30 Nov 2004

Re: mod_perl marketing
Frank Wiles 20:05 on 30 Nov 2004

Re: mod_perl marketing
Frank Wiles 19:53 on 30 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52