Hi !

My application needs a complex credential handling that sfGuardPlugin
or basic Symfony credentials handling can't deal with.
I need each user to have differents credentials on different
"domains".
Each current domain is defined dynamically as it's part of the
application data.
For instance, user A will click on a link concerning an object on data
model (through sfPropelRoute), and this object belongs to a domain.
According to user's credentials, I need to permit or not the action
behind the link.

So I thing that I need to extends sfBasicSecurityFilter.
On each sfPropelRoute triggered, I want to get the object in my
extended filter.
According to the object class, I will be able to get the domain to
which this object belongs.
I can also get the user instance in the filter.
If the user has a permission (that's an internal concept of my
extended user class) for this domain, I will dynamically and temporary
give the according credential to this user, so that he will be able to
do the subsequent action on the current object because the user has
permission for the domain of this object.

The problem is that I don't know how to get the equivalent of "$this-
>getRoute()->getObject()" from an action triggered by a sfPropelRoute
on my extended filter.
How can I get the current's route object on a filter ?
And as a subsidiary question, am I doing good ?

NB: I'm using Symfony 1.2.

Many thanks in advance to everybody.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to