Re: Change Auth component will solve hash without salt?

2008-09-11 Thread yodi
someone has same problem with me. Just in some case, you want to build some cakephp based site. but, received some user and password data (hashed with sha1) before. how to use this with Auth component... On 9/11/08, David C. Zentgraf [EMAIL PROTECTED] wrote: Not quite sure I understand your

Re: Change Auth component will solve hash without salt?

2008-09-10 Thread Okto Silaban
(hash with sha1). Then i using auth component to make login form. To make sure, that auth will using sha1 when hashing password, i'm using : Security::setHash('sha1'); in beforeFilter(). Problem happen when Auth hashing password from password input form. Auth hashing password from input form

Change Auth component will solve hash without salt?

2008-09-09 Thread Yodi Aditya
I have some users table with 2 value , email and password (hash with sha1). Then i using auth component to make login form. To make sure, that auth will using sha1 when hashing password, i'm using : Security::setHash('sha1'); in beforeFilter(). Problem happen when Auth hashing password from

Re: Allowing entire controllers with Auth component

2008-09-05 Thread jbarbede
This solution works only in this special case, for pages_controller. For another controllers, it doesn't work. I explain my situation: I added in my app_controller the Auth component and configure it to allow 'display' (I suppose you've the same tekomp): //Set application wide actions which

Re: Auth component: username and password in two different models

2008-09-04 Thread Penfold
,   I try to use the Auth component to authentificate users but It seems I can't have a username and a password in two different models.   I explain the situation in details: a user can connect to the Web site with his email and his password. But my application allows a user to have several

Re: Auth component: username and password in two different models

2008-09-04 Thread jbarbede
I have already try this possibility. Of course, I thought it will work like you but it doesn't. I read the original Auth component and it can't work because it considers only the userModel for the two fields even if you define your fields like you made it, with two different models. So I wrote

Re: Auth component: username and password in two different models

2008-09-04 Thread Penfold
HI, If the Auth component you have writing extends the original auth then all is good. the way i suggested was a stab in the dark really. Post your comment as a feature request on trac and they might include it. On 4 Sep, 14:11, jbarbede [EMAIL PROTECTED] wrote: I have already try

Auth component: username and password in two different models

2008-09-03 Thread jbarbede
Hello, I try to use the Auth component to authentificate users but It seems I can't have a username and a password in two different models. I explain the situation in details: a user can connect to the Web site with his email and his password. But my application allows a user to have

Auth Component big problem

2008-09-02 Thread drusba42
Hi I am new here and with CakePhp. I've spent two days on searching some solution for this, but I couldn't. The problem is that I am using Auth Component and all sites, which needs to be authorized works greate, expect one which is specify in loginRedirect. Everytime I trie to log

Re: Auth Component - I'm going crazy

2008-08-27 Thread shabba
of application that writes username to session etc. but now I decided to use Auth component for this purpose. As soon as I define: var $components = array('Auth'); in my users_controller or app_controller, application stops working. Firefox gives following error: Firefox has detected

Re: Auth Component on Zeus Hosting

2008-08-27 Thread AussieFreelancer
ok, so no whitespace, but still not sure what is causing it.. still the same issue, doesn't seem to like the sessions very much and kicks me out randomly... has no-one had this before? On Aug 7, 9:46 pm, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Also check for

Re: Auth Component on Zeus Hosting

2008-08-27 Thread RichardAtHome
I had exactly this issue before but setting the security setting from High to Medium fixed it for me. Check your httpd error logs for any warnings about missing files/ images etc. On Aug 27, 11:23 am, AussieFreelancer [EMAIL PROTECTED] wrote: ok, so no whitespace, but still not sure what is

Re: Auth Component on Zeus Hosting

2008-08-27 Thread AussieFreelancer
I may be wrong here, but I think I may have resolved the issue... the security I had tried on medium and low also, but that had no impact. This time, I have set the sessions to 'cake' as opposed to 'php' and in the last few minutes, it has logged me in and not kicked me out yet... time will tell,

Re: Auth Component - I'm going crazy

2008-08-26 Thread aranworld
that writes username to session etc. but now I decided to use Auth component for this purpose. As soon as I define: var $components = array('Auth'); in my users_controller or app_controller, application stops working. Firefox gives following error: Firefox has detected that the server is redirecting

Re: Auth Component - I'm going crazy

2008-08-26 Thread luigi7up
without seeing any code.  Have you tried looking at this fantastic tutorial on using the Auth component? http://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful... There are some other links there that deal with the Auth component as well. -- Chris Hartjes Motto for 2008: Moving

Re: Auth Component - I'm going crazy

2008-08-26 Thread luigi7up
application that allows users to write articles. So there are their corresponding models and controllers. Few days ago I made custom Login/register part of application that writes username to session etc. but now I decided to use Auth component for this purpose. As soon as I define: var

Re: Auth Component - I'm going crazy

2008-08-26 Thread luigi7up
without seeing any code.  Have you tried looking at this fantastic tutorial on using the Auth component? http://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful... There are some other links there that deal with the Auth component as well. -- Chris Hartjes Motto for 2008: Moving

Re: Auth Component - I'm going crazy

2008-08-26 Thread luigi7up
at this fantastic tutorial on using the Auth component? http://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful... There are some other links there that deal with the Auth component as well. -- Chris Hartjes Motto for 2008: Moving from herding elephants to handling snakes

Re: Auth Component - I'm going crazy

2008-08-26 Thread RichardAtHome
Sounds like the Auth component is redirecting you away from a protected page, to another protected page - hence the loop. In your Users controller do you have a login action? On Aug 26, 9:19 am, luigi7up [EMAIL PROTECTED] wrote: I'll try this. I read about this but I thought they were talking

Re: JSON call circumvents Auth component?

2008-08-26 Thread mark_story
Snook [EMAIL PROTECTED] wrote: I haven't had a chance to check this out in any detail and since there are multiple people touching this app, I just wanted to ask: is it possible to circumvent the Auth component by creating a request via a JSON call (with parseExtensions enabled)? (I know I'm being

Re: Allowing entire controllers with Auth component

2008-08-25 Thread Sam Sherlock
try $this-Auth-allow(array('display')); parent::beforeFilter(); 2008/8/23 tekomp [EMAIL PROTECTED] I'm using the Auth Component in my app_controller.php in the beforeFilter function, which is great for making people login, but I'm having a hard time allowing certain pages. I

JSON call circumvents Auth component?

2008-08-25 Thread Jonathan Snook
I haven't had a chance to check this out in any detail and since there are multiple people touching this app, I just wanted to ask: is it possible to circumvent the Auth component by creating a request via a JSON call (with parseExtensions enabled)? (I know I'm being really lazy here since I

Re: JSON call circumvents Auth component?

2008-08-25 Thread the_woodsman
in any detail and since there are multiple people touching this app, I just wanted to ask: is it possible to circumvent the Auth component by creating a request via a JSON call (with parseExtensions enabled)? (I know I'm being really lazy here since I haven't bothered to research it but just

Auth Component - I'm going crazy

2008-08-25 Thread luigi7up
to use Auth component for this purpose. As soon as I define: var $components = array('Auth'); in my users_controller or app_controller, application stops working. Firefox gives following error: Firefox has detected that the server is redirecting the request for this address in a way that will never

Re: Auth Component - I'm going crazy

2008-08-25 Thread Chris Hartjes
On Mon, Aug 25, 2008 at 3:32 PM, luigi7up [EMAIL PROTECTED] wrote: I found few posts about this problem but none of them resolves my problem. Really hard to diagnose without seeing any code. Have you tried looking at this fantastic tutorial on using the Auth component? http

Re: Allowing entire controllers with Auth component

2008-08-24 Thread tekomp
] I'm using the Auth Component in my app_controller.php in the beforeFilter function, which is great for making people login, but I'm having a hard time allowing certain pages.  I want all pages in my Pages controller to not require authorization, so I added $this- Auth-allow('*')  in my

Re: Allowing entire controllers with Auth component

2008-08-24 Thread RichardAtHome
to the built-in pages controller. On Aug 23, 8:22 pm, Sam Sherlock [EMAIL PROTECTED] wrote: try         $this-Auth-allow(array('display'));         parent::beforeFilter(); 2008/8/23 tekomp [EMAIL PROTECTED] I'm using the Auth Component in my app_controller.php in the beforeFilter

Auth Component admin login redirect for unauthorized page access

2008-08-24 Thread mario
Hello, How can I configure the Auth component so that it will redirect me to the login action of my admins_controller everytime someone access an unauthorized page? I see that it redirects me to the login action of my user_controller which I don't want to happen. Here is a snippet of my

Re: Auth Component admin login redirect for unauthorized page access

2008-08-24 Thread Marcin Domanski
C'mon man- do some searching. I suggest looking at the api at auth component properties. HTH 2008/8/24, mario [EMAIL PROTECTED]: Hello, How can I configure the Auth component so that it will redirect me to the login action of my admins_controller everytime someone access an unauthorized

Re: Allowing entire controllers with Auth component

2008-08-24 Thread tekomp
at the same time still have the Auth component work in the background. On Aug 23, 3:49 pm, tekomp [EMAIL PROTECTED] wrote: I'm using the Auth Component in my app_controller.php in the beforeFilter function, which is great for making people login, but I'm having a hard time allowing certain pages

Re: Auth Component admin login redirect for unauthorized page access

2008-08-24 Thread mario
Thanks Marcin. I solve the problem by using $this-Auth-loginAction() of the Auth Component. On Aug 24, 9:02 am, Marcin Domanski [EMAIL PROTECTED] wrote: C'mon man- do some searching. I suggest looking at the api at auth component properties. HTH 2008/8/24,mario[EMAIL PROTECTED

Allowing entire controllers with Auth component

2008-08-23 Thread tekomp
I'm using the Auth Component in my app_controller.php in the beforeFilter function, which is great for making people login, but I'm having a hard time allowing certain pages. I want all pages in my Pages controller to not require authorization, so I added $this- Auth-allow('*') in my

Problem with auth component

2008-07-26 Thread Intellex
Hey i am having a problem ... every thing is going fine except the redirect url ... Cake is saving the referer address in Session Auth.redirect but its not accurate ... its not giving correct url of controller ... instead its just giving an s in place of controller name ... example ... when i try

curl_exec and auth component (one for the brainiacs)

2008-07-16 Thread michaelmcandrew (aka Milky Joe)
until I start using the Auth component in the controller that makes the call. Then (even when I have $this-Auth-allow('*'); in the beforeFilter) curl_exec fails. My curl_init and curl_setopt functions are all working fine. Cheers if you can help. Michael Here is the relevant code: Anything else

Using Auth Component from behavior

2008-07-07 Thread Siegfried Hirsch
Hello, just a simple question, I guess: How could I load the AuthComponent from a behavior, that I am writing ? I think it should work with something like: App::import('Component', 'AuthComponent'); $this-Auth = new AuthComponent();

Using Auth Component from behavior

2008-07-07 Thread Siegfried Hirsch
Hello, just a simple question, I guess: How could I load the AuthComponent from a behavior, that I am writing ? I think it should work with something like: App::import('Component', 'AuthComponent'); $this-Auth = new AuthComponent(); from within the behavior. But if I want to

Re: Using Auth Component from behavior

2008-07-07 Thread francky06l
Session in not available in models. The best in your case would be to pass the parameters to the behavior from controller. hth On Jul 7, 2:05 pm, Siegfried Hirsch [EMAIL PROTECTED] wrote: Hello, just a simple question, I guess: How could I load the AuthComponent from a behavior, that I am

Re: Using Auth Component from behavior

2008-07-07 Thread Novice Programmer
Here is a post where nate suggests a way to model sessions.. http://groups.google.com/group/cake-php/browse_thread/thread/8911d61137f80eb5/00217852f762f67c?lnk=gstq=novice.program+session+model#00217852f762f67c Thanks. On 7/7/08, francky06l [EMAIL PROTECTED] wrote: Session in not available

Re: $loginRedirect in the Auth component does not work?

2008-06-30 Thread wil
I was having this problem and then set debug = 3 and which seems to have resolved it. Maybe a cache issue? On Jun 24, 4:03 pm, deltawing [EMAIL PROTECTED] wrote: I tried setting $loginRedirectin theAuthcomponent but it doesn't seem to work. No matter what I set the variable to, Cake will

User Account Administration using Auth Component - Password reset/Forgot Password Functionality

2008-06-29 Thread Maro
I'm trying to to allow users to update their password should they forget it using a Forget Password link which maps to method resetPassword(). I am using the Auth component and when registering a new user and saving the account details to the database the password is automattically encrypted

Re: User Account Administration using Auth Component - Password reset/Forgot Password Functionality

2008-06-29 Thread Chris Hartjes
in the Auth component section. Hope that helps. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you

Re: Auth Component the most failment of Cakephp

2008-06-26 Thread Alessio
I don't know how but now it works... I recreate all my site..with rc1..and clean a lot the code... Essentially I learned this..that if the beforeFilter triggers two times, the auth component becomes instable... So you have to check all your code... for example in my application i

Re: Auth Component the most failment of Cakephp

2008-06-25 Thread Alessio
know how but now it works... I recreate all my site..with rc1..and clean a lot the code... Essentially I learned this..that if the beforeFilter triggers two times, the auth component becomes instable... So you have to check all your code... for example in my application i had an image

Re: Auth Component the most failment of Cakephp

2008-06-25 Thread the_woodsman
I don't know how but now it works... I recreate all my site..with rc1..and clean a lot the code... Essentially I learned this..that if the beforeFilter triggers two times, the auth component becomes instable... So you have to check all your code... for example in my application i had

Re: Auth Component the most failment of Cakephp

2008-06-24 Thread francky06l
are routing everything to the Contents_Controller rather than just put the functionality of the Contents_Controller into the app_controller? I think that one of the frustrations people have with the Auth component is that when a problem crops up, it can take a lot of digging around to solve

$loginRedirect in the Auth component does not work?

2008-06-24 Thread deltawing
I tried setting $loginRedirect in the Auth component but it doesn't seem to work. No matter what I set the variable to, Cake will always redirect to the last page that I was at prior to logging in. Anyone have any ideas on why? --~--~-~--~~~---~--~~ You received

Re: $loginRedirect in the Auth component does not work?

2008-06-24 Thread Federico Rinaldi
That's how it's supposed to work. The Auth component just redirects to $loginRedirect when you access the $loginAction directly becouse it doesn't have any where else to go. If you want to redirect somewhere else you can use the auth's or controller's redirect method after a succesfull login

Auth Component the most failment of Cakephp

2008-06-23 Thread Alessio
I have lost an evening to understand the mechanism of Auth component. Sometimes the $this-Auth-user() gives me empty values and others times I get values filled in. I was using the beta, and now changed to Rc1 only hoping to get a better solution in Auth.. But the result are same... Moving from

Re: Auth Component the most failment of Cakephp

2008-06-23 Thread Chris Hartjes
On Mon, Jun 23, 2008 at 9:05 PM, Alessio [EMAIL PROTECTED] wrote: Why the auth is so buggy...? I wonder what I am doing in my code that Auth works perfectly every time I use it, never experiencing the problems mentioned on the mailing list. I never get logins failing to work, I never get empty

Re: Auth Component the most failment of Cakephp

2008-06-23 Thread Alessio
' = 'ProcessAllRequest')); Essentially when in my site the user write something, I redirect all to the Content_Controller... So When, the user enter in mycontroller by route, the component forces to logout... It seems that with normal routing it works... It is a pity that I cannot use the auth component..but I

Re: Auth Component the most failment of Cakephp

2008-06-23 Thread Chris Hartjes
one controller? It makes no sense to me, but I probably don't understand the problem you are trying to solve. Essentially I say to the auth component to allow all request of COntent_controller... But I saw after many hour of debugging that the Auth COmponent is not able to manage

Re: Auth Component the most failment of Cakephp

2008-06-23 Thread aranworld
I'm curious to know why you are routing everything to the Contents_Controller rather than just put the functionality of the Contents_Controller into the app_controller? I think that one of the frustrations people have with the Auth component is that when a problem crops up, it can take a lot

Re: Auth component : UsersController could not be found

2008-06-06 Thread Greg
Hi teum, I too had a lot of problems trying to get this work using anything other the standard users controller. I'm using 1.2 and I found that this works: In app controller: ?php class AppController extends Controller { var $helpers = array('javascript'); var $components =

Re: Auth component : UsersController could not be found

2008-06-06 Thread Timothée BRENNER
Ok, thanks for your help. I've tried to do it this way but I should have done a mistake because it didn't work. Hmm quoting by Dardo, if you have a beforeFilter() in another controller extending AppController, it will not work unless you call parent::beforeFilter() in the child beforeFilter()...

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
I've upgraded to 1.2 RC1 and it hasn't solved my problem. Thanks anyway. Another idea someone ? On 4 juin, 21:01, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Any idea ? Try to upgrade your cake version. --~--~-~--~~~---~--~~ You received this message because

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
= array('Auth'); Or add it to your AppController so all of your controllers will use it: Code View class AppController extends Controller { var $components = array('Auth'); So, when I choose the first option (add the auth component in each controller) it works and when I choose the second

Re: Auth component : UsersController could not be found

2008-06-05 Thread leo
I'm trying to get the Auth component working. I've specified a different users controller (utilisateurs) but when I try to go to the login page (/utilisateurs/login) or to access a denied resource I'm always redirected to /users/login (should be /utilisateurs/login). I don't know if it'll

Re: Auth component : UsersController could not be found

2008-06-05 Thread Dardo Sordi Bogado
= array('Auth'); Or add it to your AppController so all of your controllers will use it: Code View class AppController extends Controller { var $components = array('Auth'); So, when I choose the first option (add the auth component in each controller) it works and when I choose the second

Re: Auth component : UsersController could not be found

2008-06-05 Thread Dardo Sordi Bogado
Ignore the previous code, I hit the send button by accident class ThingsControllers extends Appcontroller { var $name = 'Things'; function beforeFilter() { parent::beforeFilter(); // this controller custom stuff } } Regards, - Dardo Sordi

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
if it's necessary to have a Users controller I'll make one... Thanks ! On 5 juin, 12:27, leo [EMAIL PROTECTED] wrote: I'm trying to get the Auth component working. I've specified a different users controller (utilisateurs) but when I try to go to the login page (/utilisateurs/login

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
I guess that when you declare a beforeFilter() method in a controller (which extends AppController) it overrides the AppController::beforeFilter() ? Am I right ? I'm going to do the following : 1) In my AppController I'll put this : function initializeAuthComponent() {

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
Ok I tried to do what I said in my previous message but unfortunately it doesn't work well, so I'm getting back to the only method that works i.e. putting a beforeFilter() with all the Auth component initializations (7 lines) in EACH of my controllers + a line to tell Cake that my controller uses

Re: Auth component : UsersController could not be found

2008-06-05 Thread Dardo Sordi Bogado
I guess that when you declare a beforeFilter() method in a controller (which extends AppController) it overrides the AppController::beforeFilter() ? Am I right ? Yes, then you just need to call parent::beforeFilter() inside the beforeFilter method from the controller you are declaring.

Re: Auth component : UsersController could not be found

2008-06-05 Thread Timothée BRENNER
use the parent beforeFilter() method and my initializeAuthComponent() wasn't private) didn't ? BTW, I don't understand why my solution didn't work, but this Auth component seems a little strange... 2008/6/5 Dardo Sordi Bogado [EMAIL PROTECTED]: I guess that when you declare a beforeFilter

Re: Auth component : UsersController could not be found

2008-06-05 Thread Dardo Sordi Bogado
great. BTW, I don't understand why my solution didn't work, but this Auth component seems a little strange... The Auth component works just fine. 2008/6/5 Dardo Sordi Bogado [EMAIL PROTECTED]: I guess that when you declare a beforeFilter() method in a controller (which extends

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
initializeAuthComponent() wasn't private) didn't ? I don't know what are you doing in your setup in order to make it don't work, for me is working great. BTW, I don't understand why my solution didn't work, but this Auth component seems a little strange... The Auth component works just fine. 2008/6/5

Re: Auth component : UsersController could not be found

2008-06-05 Thread leo
are you doing in your setup in order to make it don't work, for me is working great. BTW, I don't understand why my solution didn't work, but this Auth component seems a little strange... The Auth component works just fine. 2008/6/5 Dardo Sordi Bogado [EMAIL PROTECTED]: I guess

Re: Auth component : UsersController could not be found

2008-06-05 Thread teum
solution ever or trying to make things work exactly as I want them to work and finally I waste a lot of time. And at work time == money so you can't spend a whole day searching the web... But as far as the Auth component is concerned, even if you use the standard Users controller, actually (correct me

Re: Auth component : UsersController could not be found

2008-06-05 Thread Dardo Sordi Bogado
But using the standard Users controller doesn't change anything with that. So I may use Dardo Sordi Bogado's method as he tells me it works... Just Dardo, please. My method isn't any different from the suggested at the manual, I just use a separate function for the auth stuff beacause I

Auth component : UsersController could not be found

2008-06-04 Thread teum
Hello, I've spent some time trying to find a solution to the following problem by myself and also by searching in this group but I found nothing at all. Here's the thing : I'm trying to get the Auth component working. I've specified a different users controller (utilisateurs) but when I try

Re: Auth component : UsersController could not be found

2008-06-04 Thread Dardo Sordi Bogado
Any idea ? Try to upgrade your cake version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email

Auth component: how to change current user, w/out password?

2008-06-04 Thread mcjustin
Is it possible to programmatically switch which user the Auth lib has logged in, without knowing the password of the second user? For example, userAdminJoe is logged in. I want him to be able to click a link which will switch him to be treated as user userPeonJack. I want to do this at the Auth

Re: Auth component: how to change current user, w/out password?

2008-06-04 Thread Dardo Sordi Bogado
I think you can do $this-Auth-login($id); Regards, - Dardo Sordi. On Wed, Jun 4, 2008 at 7:16 PM, mcjustin [EMAIL PROTECTED] wrote: Is it possible to programmatically switch which user the Auth lib has logged in, without knowing the password of the second user? For example, userAdminJoe

Re: Auth Component not working using PagesController

2008-05-30 Thread Dan Soendergaard
Thanks! So simple, I don't believe it... But it works :) On 29 Maj, 23:47, francky06l [EMAIL PROTECTED] wrote: Did you copy the PagesController in your application ? If so, create the beforeFilter and call parent::beforeFiler .. hth On May 29, 10:47 pm, Dan Soendergaard [EMAIL PROTECTED]

Auth Component not working using PagesController

2008-05-29 Thread Dan Soendergaard
Hi everybody, I use the AuthComponent on my site for authentication. I've specified all of the things that it needs to know in the app_controller.php, where I also set a variable, $user, which contains the object of the current user. I use this for showing custom menus, log out links etc.

Re: Auth Component not working using PagesController

2008-05-29 Thread francky06l
Did you copy the PagesController in your application ? If so, create the beforeFilter and call parent::beforeFiler .. hth On May 29, 10:47 pm, Dan Soendergaard [EMAIL PROTECTED] wrote: Hi everybody, I use the AuthComponent on my site for authentication. I've specified all of the things that

Re: Restricting Login Attempts with Auth Component

2008-05-28 Thread aranworld
it's job. On May 22, 9:13 pm, aranworld [EMAIL PROTECTED] wrote: I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab at the problem thus far: http://cakeforge.org/snippet/detail.php?type=snippetid

Re: Restricting Login Attempts with Auth Component

2008-05-23 Thread leveille
[EMAIL PROTECTED] wrote: I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab at the problem thus far: http://cakeforge.org/snippet/detail.php?type=snippetid=220 I'd love to hear what other people

Restricting Login Attempts with Auth Component

2008-05-22 Thread aranworld
I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab at the problem thus far: http://cakeforge.org/snippet/detail.php?type=snippetid=220 I'd love to hear what other people have done, or what they think of the method

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread Mathew Nik Foscarini
Login Attempts with Auth Component I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab at the problem thus far: http://cakeforge.org/snippet/detail.php?type=snippetid=220 I'd love to hear what other people have done

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread davidpersson
to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab at the problem thus far: http://cakeforge.org/snippet/detail.php?type=snippetid=220 I'd love to hear what other people have done, or what they think of the method I am

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread aranworld
It may need some changes to make it work with 1.2 but I think it's simple and does it's job. On May 22, 9:13 pm, aranworld [EMAIL PROTECTED] wrote: I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread BrendonKoz
It may need some changes to make it work with 1.2 but I think it's simple and does it's job. On May 22, 9:13 pm, aranworld [EMAIL PROTECTED] wrote: I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab

Re: Custom Login for Auth Component?

2008-04-30 Thread Aitch
Folks, this *can* be done if you dig deep enough. I know it is bad karma to modify the source, but I've done it - to add LDAP authentication capability to Auth. I even have the diffs against 6311 :-) The trick is to look at the identify() method in auth.php. Essentially the hard coded call to

Re: Custom Login for Auth Component?

2008-04-30 Thread Marcin Domanski
component that would inherit from Auth component instead of editing the core ? -- Marcin Domanski http://kabturek.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: Custom Login for Auth Component?

2008-04-30 Thread Howard Glynn
to create a LdapAuth component that would inherit from Auth component instead of editing the core ? -- Marcin Domanski http://kabturek.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group

Custom Login for Auth Component?

2008-04-29 Thread BrendonKoz
I'd really like to take advantage of CakePHP v1.2's Auth and ACL features, but our user authentication is not stored in a database that I have access to, it is only accessible via a SSL webservice call. This means that users will not initially have any related model data in the User model, and

Re: Custom Login for Auth Component?

2008-04-29 Thread Chris Hartjes
On Tue, Apr 29, 2008 at 2:29 PM, BrendonKoz [EMAIL PROTECTED] wrote: I'd really like to take advantage of CakePHP v1.2's Auth and ACL features, but our user authentication is not stored in a database that I have access to, it is only accessible via a SSL webservice call. This means that

Re: Custom Login for Auth Component?

2008-04-29 Thread mbavio
And dont forget to share it with the community after finished :P Cheers, mbavio mbavio.com.ar On Apr 29, 3:39 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Tue, Apr 29, 2008 at 2:29 PM, BrendonKoz [EMAIL PROTECTED] wrote: I'd really like to take advantage of CakePHP v1.2's Auth and ACL

Re: Custom Login for Auth Component?

2008-04-29 Thread BrendonKoz
Assuming this is something you've done before, or at least thought through...by a custom model, surely you mean extending the Model class and overriding any incompatible methods, right? I just checked all of the methods included in the Model class - that's 120 methods according to Zend for

Re: Custom Login for Auth Component?

2008-04-29 Thread Chris Hartjes
on a local database, it's simply the username and password (used for authentication) that will not be accessible in this table. Would the suggested solution still be the same? Well, I seem to remember someone who was able to use the Auth component and talk to a RADIUS server. phishy

Re: Custom Login for Auth Component?

2008-04-29 Thread Knud Soerensen
BrendonKoz wrote: I'd really like to take advantage of CakePHP v1.2's Auth and ACL features, but our user authentication is not stored in a database that I have access to, it is only accessible via a SSL webservice call. This means that users will not initially have any related model data in

Re: Custom Login for Auth Component?

2008-04-29 Thread nate
The Auth component will *probably* be refactored to provide for an adapter-like interface before 1.2 final. On Apr 29, 4:00 pm, Knud Soerensen [EMAIL PROTECTED] wrote: BrendonKoz wrote: I'd really like to take advantage of CakePHP v1.2's Auth and ACL features, but our user authentication

Re: Custom Login for Auth Component?

2008-04-29 Thread BrendonKoz
If one doesn't exist, would an enhancement request help to solidify that? Thanks for the update, Nate. On Apr 29, 4:32 pm, nate [EMAIL PROTECTED] wrote: The Auth component will *probably* be refactored to provide for an adapter-like interface before 1.2 final

Auth Component Question

2008-04-26 Thread Kyle Decot
I am attempting to do the tutorial at: http://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful-tutorial-for-using-cakephps-auth-component/ but when I attempt to login, the page just reloads. I suspected that the problem was with: if ($this-Auth-user()) { So I made a small bit

Re: Auth Component Question

2008-04-26 Thread Chris Hartjes
On Sat, Apr 26, 2008 at 3:05 AM, Kyle Decot [EMAIL PROTECTED] wrote: function login() { if ($this-Auth-user()) { echo working so far; } else { echo not working at all; } } the page always returns not working at all. Am I doing something wrong with this tutorial? Is there

Plugins and Auth component

2008-04-24 Thread alxlevin
Hi. I'm trying to write a profiling plugin named Profile in 1.2.0.6311 Beta. I can access the views in my plugin (profile/ profile_mains/login) but as soon as I add the Auth component in the profile_app_controller.php file, I get redirected to profile/users/ login and receive a Missing

Re: Quick Auth component issue

2008-04-10 Thread Antonio Labriola
Hey guys, thanks for the responses. So it looks like i was doing everything correctly except one minor thing. I was using md5 to encrypt my passwords, however the Auth component does not default to md5, so i had to set it. Then i had to modify the Security.salt key to blank in order

Quick Auth component issue

2008-04-09 Thread Antonio Labriola
Hi guys, Hopefully someone could have a quick answer for me. I am trying to use the auth component for authorization in my webapp. I have activated the auth component and app_controller.php, and i have created a users_controller,user model, and users table in the database, all

Re: Quick Auth component issue

2008-04-09 Thread aranworld
in the UsersController is empty, right? On Apr 9, 11:48 am, Antonio Labriola [EMAIL PROTECTED] wrote: Hi guys, Hopefully someone could have a quick answer for me. I am trying to use the auth component for authorization in my webapp. I have activated the auth component and app_controller.php, and i have

<    2   3   4   5   6   7   8   9   >