On 9/16/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 9/15/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > Dunno. What's wrong with having possibility for authentication
> > strategy per session? I don't like API bloat, but I can imagine a good
> > usecase for this.
>
> If you want a per session strategy, you can still do that, as any
> implementation can just use the session for it, or you can even make a
> factory for it. It is just bloat.
>
> Eelco
>
This
/**
* @return The authorization strategy for this session
*/
public IAuthorizationStrategy getAuthorizationStrategy()
{
return
getApplication().getSecuritySettings().getAuthorizationStrategy();
}
really looks more like indirection than a bloat to me. Sure there are
ways around it. You can make your authorization strategy that forwards
from specific AS from session, but why should you do that?
I think this is a good place for chosing AuthenitcationStrategies
according to e.g. currently logged user/role. Still, if you really
want to remove this, what about a vote?
-Matej