Page 22 of 211,275, showing 20 records out of 4,225,499 total, starting on record 421, ending on 440
# | Username | Text | |
---|---|---|---|
# | Aug 6th 2008, 16:44 | TommyO | will allow un-authenticated users to a specific action |
# | Aug 6th 2008, 16:45 | Mathachew | TommyO: Having to specify $this->Auth->allow() doesn't work for me because that's not a dynamic solution |
# | Aug 6th 2008, 16:46 | TommyO | Mathachew: it can be. how is it not dynamic? what needs to be dynamic? |
# | Aug 6th 2008, 16:46 | Mathachew | francky06l: I don't see what you mean... I have the permissions in place to authorize the user, regardless if they're logged in, but the problem is that anonymous users are given the login screen |
# | Aug 6th 2008, 16:46 | Mathachew | TommyO: I couldn't create an interface to work well with Cake's ACL, so I have my own, which is working, but the authentication is causing the problem for anonymous users |
# | Aug 6th 2008, 16:47 | francky06l | Mathachew: I have solved this kind of problem by having a "default" user .... then you can have ACL on it ... everyone that has got a new session (or non Auth variable) get the same Auth variable ...contralable by ACL |
# | Aug 6th 2008, 16:47 | francky06l | Mathachew: well then if you have your own I do not know .... I am quite familiar with cake's native one ..... |
# | Aug 6th 2008, 16:47 | Mathachew | My default user is anonymous and permissions are created for the anonymous user, my problem is the Authentication being triggered when I don't need it to |
# | Aug 6th 2008, 16:48 | TommyO | Mathachew: allow() has nothing to do with ACL. it has to do with whether an unauthenticated user gets redirected |
# | Aug 6th 2008, 16:48 | TommyO | if you allow(),, then they're NOT redirected |
# | Aug 6th 2008, 16:48 | Mathachew | I know |
# | Aug 6th 2008, 16:48 | TommyO | which is what you want |
# | Aug 6th 2008, 16:48 | Mathachew | No, it's not what I want |
# | Aug 6th 2008, 16:48 | Mathachew | I have everything I want in place except for anonymous users |
# | Aug 6th 2008, 16:48 | Mathachew | everything else is working |
# | Aug 6th 2008, 16:49 | francky06l | Mathachew: again, I do not know what your implementation is ..but seems quite easy to check if a user is authenticated or not, if not authenticate him as anonymous.. |
# | Aug 6th 2008, 16:49 | Mathachew | I don't want to specify $this->Auth->allow() in each controller I create when my custom ACL will allow/deny access to the controller's action |
# | Aug 6th 2008, 16:49 | Mathachew | ugh |
# | Aug 6th 2008, 16:49 | Mathachew | My problem is the Auth component automatically redirecting because the user isn't logged in |
# | Aug 6th 2008, 16:49 | Mathachew | they have permission to read the controller, but they're redirected anywayh |