Logs for #cakephp

Page 6 of 36,922, showing 100 records out of 3,692,143 total, starting on record 501, ending on 600

# At Username Text
# Aug 6th 2008, 17:00 Mathachew right?
# Aug 6th 2008, 17:00 Mathachew well that's what you're telling me to do
# Aug 6th 2008, 17:00 TommyO nope
# Aug 6th 2008, 17:00 Mathachew do my checking before Auth comes in
# Aug 6th 2008, 17:01 TommyO I said you don't need ACL
# Aug 6th 2008, 17:01 TommyO nope
# Aug 6th 2008, 17:01 Mathachew I want ACL
# Aug 6th 2008, 17:01 Mathachew it's my own
# Aug 6th 2008, 17:01 francky06l Mathachew: can youpast some code in bin ?
# Aug 6th 2008, 17:01 TommyO I said set the rules
# Aug 6th 2008, 17:01 nymacro lol, I'm having trouble with ACL at the moment too ;)
# Aug 6th 2008, 17:01 Mathachew TommyO: I have rules in place, it's all dynamically built
# Aug 6th 2008, 17:01 TommyO all allow('action'); does is set the rules for Auth
# Aug 6th 2008, 17:01 francky06l nymacro: I love ACL
# Aug 6th 2008, 17:01 Mathachew I don't want Auth to authorize, only authenticate
# Aug 6th 2008, 17:02 nymacro francky06l: aye, I'm having problems setting it up though.. Not sure what is wrong. Keeps on complaining about rght. Maybe because i'm using SQLite3 DBO
# Aug 6th 2008, 17:02 Mathachew my Authorization is handled separately
# Aug 6th 2008, 17:02 francky06l authenticate is an home made component
# Aug 6th 2008, 17:02 francky06l ?
# Aug 6th 2008, 17:02 TommyO Mathachew: ok. then hand off authorization somewhere else right?
# Aug 6th 2008, 17:03 Mathachew TommyO: Oi. I am, it's what my custom ACL solution is
# Aug 6th 2008, 17:03 Mathachew I'm authorizing the user based on the permissions that are set
# Aug 6th 2008, 17:03 francky06l Mathachew: I think you are overthinking ACL
# Aug 6th 2008, 17:03 Mathachew The system is already working
# Aug 6th 2008, 17:03 TommyO allow() and deny() only tell auth whether an Authenticated user should be handed off to your authorization level or redirected
# Aug 6th 2008, 17:03 Mathachew my ACL portion is working I mean
# Aug 6th 2008, 17:04 Mathachew Auth is authorizing and authenticating. I don't want it to
# Aug 6th 2008, 17:04 francky06l nymacro: hummm not familiat with SQllite ...
# Aug 6th 2008, 17:04 TommyO Mathachew: look more closely at Auth then. because it's not unless you tell it to.
# Aug 6th 2008, 17:04 francky06l Mathachew: well you can do your own authentication and let Auth doing the authorization
# Aug 6th 2008, 17:05 nymacro francky06l: I like SQLite for local testing (rather than running a daemon). But SQLite 3 DBO isn't standard with Cake. (It only supports SQLite2 OOB)
# Aug 6th 2008, 17:05 francky06l nymacro: why not go for mySql ?
# Aug 6th 2008, 17:05 nymacro Because I'm weird
# Aug 6th 2008, 17:06 francky06l nymacro: being weird has a price:-)
# Aug 6th 2008, 17:06 Mathachew francky06l: I don't want it to do authorization, that's what my ACL is for
# Aug 6th 2008, 17:06 nymacro but in the end, I think it pays off ;)
# Aug 6th 2008, 17:06 Mathachew TommyO: Well how do I stop it from authorizing?
# Aug 6th 2008, 17:06 TommyO Mathachew: look at Auth::authorize
# Aug 6th 2008, 17:06 francky06l Mathachew: so, why don't you just use ACL, and manage the rest ?
# Aug 6th 2008, 17:06 Mathachew wow... I um.. I am
# Aug 6th 2008, 17:06 TommyO in the API
# Aug 6th 2008, 17:06 Mathachew I'm using ACL
# Aug 6th 2008, 17:06 Mathachew it's similar to Cake's ACL
# Aug 6th 2008, 17:07 francky06l Mathachew: ok but ACL can be used wihtout Auth ... but I am sure you can do what you want with Auth ..seems easy to me
# Aug 6th 2008, 17:07 nymacro francky06l: does this look familiar? Undefined index: rght [CORE/cake/libs/model/behaviors/tree.php, line 889]
# Aug 6th 2008, 17:07 Mathachew I'm not explaining it clearly enough then
# Aug 6th 2008, 17:08 francky06l nymacro: does not look like a DB error to me
# Aug 6th 2008, 17:08 francky06l seems that your tree table is not there, or not complient
# Aug 6th 2008, 17:09 Mathachew francky06l: I'm not using ACL with Auth; they're separate and have no correlation (or at least that's what I'm trying to achieve). I'm using ACL to determine if the controller/action is granted or denied to the current user, regardless of who they are. I want to use Auth to log a user in and out, not determine if the user has access to the current page
# Aug 6th 2008, 17:10 MrRio Hey, I'd like to become a CakePHP certified engineer. Anyone I can talk to about this?
# Aug 6th 2008, 17:10 francky06l Mathachew: well you are using then Auth + ACL
# Aug 6th 2008, 17:10 Mathachew francky06l: how? One is for authorization, the other is for authentication
# Aug 6th 2008, 17:10 nymacro francky06l: the table is there, and my ACL is pretty simple at the moment
# Aug 6th 2008, 17:11 francky06l MrRio: ask TommyO ..he is :-)
# Aug 6th 2008, 17:11 nymacro been using http://bakery.cakephp.org/articles/view/how-to-use-acl-in-1-2-x for reference to get it up and running
# Aug 6th 2008, 17:12 TommyO Mathachew: ok. this is the logic. Auth will see if Authenticated. if it is it hands off to Authorization, if not it checks to see what the basic logic is for Authorization by checking the allow/deny rules
# Aug 6th 2008, 17:12 francky06l nymacro: have you got mysql ? to find out, try with it...if it's works then means the driver for your db...has to be improved
# Aug 6th 2008, 17:12 nymacro yeah, I might give that a try
# Aug 6th 2008, 17:12 TommyO Mathachew: $this->allow('*'); will allow all users to pass through to isAuthorized, where your ACL then handles all logic
# Aug 6th 2008, 17:13 Swiatecki localtime where you are?
# Aug 6th 2008, 17:13 francky06l Swiatecki: localtime for whom ?
# Aug 6th 2008, 17:13 Mathachew TommyO: Ok, I want to stop it at the hand off to authorization. So I guess I just do authorize('*')
# Aug 6th 2008, 17:13 TommyO Mathachew: hmm... hold on that actually...
# Aug 6th 2008, 17:13 Tom_M_ anyone know when using the containable behavior i'm getting an extra (unneeded?) key in my array ...
# Aug 6th 2008, 17:13 Swiatecki you! on the chan
# Aug 6th 2008, 17:13 Tom_M_ it's always array[0] [model] ...
# Aug 6th 2008, 17:14 TommyO authorize() is not an Auth method
# Aug 6th 2008, 17:14 TommyO authorize is an Auth member
# Aug 6th 2008, 17:14 Tom_M_ i mean i guess its running like a find all when i want read
# Aug 6th 2008, 17:14 francky06l Tom_M_: can we see the query ?
# Aug 6th 2008, 17:14 Mathachew right
# Aug 6th 2008, 17:14 francky06l Swiatecki: gtm - 1 for me
# Aug 6th 2008, 17:14 Tom_M_ http://bin.cakephp.org/view/728516538
# Aug 6th 2008, 17:14 Swiatecki francky06l: where you located?
# Aug 6th 2008, 17:15 francky06l Swiatecki: Monaco when I am at work, South France now (home)
# Aug 6th 2008, 17:16 Swiatecki oh man! sweet?!
# Aug 6th 2008, 17:16 francky06l Swiatecki: it could be worse
# Aug 6th 2008, 17:16 francky06l -)
# Aug 6th 2008, 17:16 MrRio TommyO: Hey, how did you become a CakePHP Certified Engineer?
# Aug 6th 2008, 17:16 Swiatecki francky06l: what do you do for a living?
# Aug 6th 2008, 17:16 francky06l Tom_M_: and what are the results ? nothing wrong for me in the code (read quickly thouth)
# Aug 6th 2008, 17:17 francky06l Swiatecki: well I work :-)
# Aug 6th 2008, 17:17 Swiatecki as?
# Aug 6th 2008, 17:17 TommyO MrRio: I'm not. :)
# Aug 6th 2008, 17:17 MrRio Ahh right, francky06l said you were :P
# Aug 6th 2008, 17:17 francky06l Swiatecki: for now, i have a company and I do some consulting in IT ....
# Aug 6th 2008, 17:17 TommyO Mathachew: ok. is your custom ACL a component, class, model method?
# Aug 6th 2008, 17:18 francky06l Mathachew: I guess Auth could do all this ... but if we can see the code of your implementation ...?
# Aug 6th 2008, 17:19 Swiatecki anyways, night night, its getting late in GMT +1
# Aug 6th 2008, 17:19 francky06l Swiatecki: bye
# Aug 6th 2008, 17:19 TommyO Mathachew: Auth only calls its isAuthorized() when it's told to. it won't bother otherwise. so you need to be sure your custom setup gets called properly
# Aug 6th 2008, 17:21 francky06l Mathachew: you can change the mode of Auth in beforeFlter for authenticated users ...
# Aug 6th 2008, 17:21 Tom_M_ francky061: it has an extra key in there [0]
# Aug 6th 2008, 17:21 Tom_M_ as if it was a find all
# Aug 6th 2008, 17:21 gwoo TommyO: isAuthorized() is called automatically in startup
# Aug 6th 2008, 17:21 Tom_M_ i could just go $array = $array[0] - but thats silly i thought
# Aug 6th 2008, 17:22 Mathachew What I have to do is manually authorize the user after their permissions are setup, and redirect them accordingly.
# Aug 6th 2008, 17:22 francky06l gwoo: he could set a default user for non - authenticated ...?
# Aug 6th 2008, 17:22 gwoo Tom_M_: array_pop() or array_shift()
# Aug 6th 2008, 17:23 Tom_M_ well i need the index. i should say rather extra depth