Basic auth question + API clarifications

2012-10-24 Thread Zap
For my API, I just want to use basic auth, wich is done in the Appcontroller with something like this : //if request is XML $this->Auth->authenticate = array('Basic'); So, the header ni my requets has to have username and password. But I want that in order to login via basic auth for api call,

Auth Question For Webroot App

2010-06-23 Thread bradmaxs
Hi Everybody, I am using the Auth component for a simple site. No ACL required. I have installed WordPress for the blogging and want to restrict users who are not signed in. I have WP installed in webroot. I thought maybe this would work but no avail. in app-controller.php if (isset($this->pa

Re: Auth Question

2009-09-16 Thread cakephp_rocks
so what should i do to fix this i'm still learning about auth in cakephp and would you explain whats black hole for and i sometimes get "invalid form submission" thank you in advance On Sep 15, 9:07 am, AD7six wrote: > On 15 sep, 17:30, cakephp_rocks wrote: > > > > > this is in my Userscontro

Re: Auth Question

2009-09-15 Thread AD7six
On 15 sep, 17:30, cakephp_rocks wrote: > this is in my Userscontroller im using ad7six's mi-base > function beforeFilter() { >                 parent::beforeFilter(); >                 if (Configure::read()) { >                         $this->Auth->allow('admin_init_acl'); >                 } >

Re: Auth Question

2009-09-15 Thread cakephp_rocks
this is in my Userscontroller im using ad7six's mi-base function beforeFilter() { parent::beforeFilter(); if (Configure::read()) { $this->Auth->allow('admin_init_acl'); } $this->set('authFields', $this->Auth->f

Re: Auth Question

2009-09-15 Thread brian
On Mon, Sep 14, 2009 at 9:48 AM, cakephp_rocks wrote: > > this is in my app controller > > function beforeFilter( ) { >        parent::beforeFilter(); >                $this->Auth->loginAction = array('admin' => false, > 'controller' => > 'users', 'action' => 'login'); >                $this->Au

Re: Auth Question

2009-09-14 Thread Miles J
If you have to click "login" and go to the login page, then there isnt a referrer. --~--~-~--~~~---~--~~ 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 uns

Re: Auth Question

2009-09-14 Thread cakephp_rocks
; What does your AppControll:beforeFilter() look like? > > > On Fri, Sep 11, 2009 at 5:59 PM, cakephp_rocks > > > wrote: > > > > hello everybody  i have a quick Auth question > > > > i have created a login form in a element in its in default layout > &

Re: Auth Question

2009-09-14 Thread cakephp_rocks
th->loginRedirect = '/'; $this->Auth->logoutRedirect = '/'; On Sep 12, 6:34 am, brian wrote: > What does your AppControll:beforeFilter() look like? > > On Fri, Sep 11, 2009 at 5:59 PM, cakephp_rocks > > > > wrote: >

RE: Auth Question

2009-09-12 Thread hengki
er 12, 2009 5:00 AM To: CakePHP Subject: Auth Question hello everybody i have a quick Auth question i have created a login form in a element in its in default layout whenever i login it wont referer to the page i was it redirects back to ' / ' so i tried this dosent seem to w

Re: Auth Question

2009-09-12 Thread brian
What does your AppControll:beforeFilter() look like? On Fri, Sep 11, 2009 at 5:59 PM, cakephp_rocks wrote: > > hello everybody  i have a quick Auth question > > i have created a login form in a element in its in default layout > whenever i login it wont referer to the page i was

Auth Question

2009-09-11 Thread cakephp_rocks
hello everybody i have a quick Auth question i have created a login form in a element in its in default layout whenever i login it wont referer to the page i was it redirects back to ' / ' so i tried this dosent seem to work $this->Auth->loginRedirect = $referer; so if i use

Re: Auth Question

2008-04-29 Thread Kyle Decot
Thanks for the response. you think you could give me an example of this as I'm having some problems getting this to work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

Re: Auth Question

2008-04-28 Thread francky06l
You can't do this, since the recursive is set to -1 in the Auth itself (User->find() in identify method). I post a ticket about this months ago, but it ended with "wont fix". My work around is to "trick" a bit. I use my own method for Login and if successful I call the login method of Auth by pas

Auth Question

2008-04-28 Thread Kyle Decot
Is there a way to do something like $this->Auth->recursive = 3; ? When I set my auth data, I would like to get additional information about my users e.g. all their posts, and comments etc. If I'm going about this the wrong way, please let me know of an alternative method. Thanks as always. --~--

Re: Auth question in 1.2 Beta

2008-03-31 Thread Baz
You should be able to do just what I said below and in the beforeFilter() of the post controller, change Auth's redirect to /posts/main...don't forget to call the parent beforeFilter though Good luck. On Mon, Mar 31, 2008 at 11:43 AM, Baz <[EMAIL PROTECTED]> wrote: > You can't have the login

Re: Auth question in 1.2 Beta

2008-03-31 Thread Baz
You can't have the login forms action as /posts/main I think what you may need to do is in your *other* login form, change the action /users/login (I'm assuming)... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Auth question in 1.2 Beta

2008-03-31 Thread overeat
Thanks Chris, I think I got what you mean, and I will try it tonight. Actually, I did read all your blogs about the Auth, and that's part of the reason, I am testing drive the Auth component. Really appreciate your helps to show people how to use cake's new features. It really helps a lot. On

Re: Auth question in 1.2 Beta

2008-03-31 Thread Chris Hartjes
On Mon, Mar 31, 2008 at 11:52 AM, overeat <[EMAIL PROTECTED]> wrote: > > I want to display some information on the /posts/index page and the > login form, instead of a link to /posts/main, then let the Auth > component direct the user to the /users/login page, then after the > user passed the

Re: Auth question in 1.2 Beta

2008-03-31 Thread overeat
I want to display some information on the /posts/index page and the login form, instead of a link to /posts/main, then let the Auth component direct the user to the /users/login page, then after the user passed the authentication, then Auth redirect them to the /posts/ main. So I put *another* lo

Re: Auth question in 1.2 Beta

2008-03-31 Thread Chris Hartjes
On Sun, Mar 30, 2008 at 2:28 AM, overeat <[EMAIL PROTECTED]> wrote: > > Everything looks logic to me, but how can I make the Auth component to > authenticate the user in the first form, and then direct them to the / > posts/main without showing the second login screen? Or is it possible? By de

Re: Auth question in 1.2 Beta

2008-03-31 Thread overeat
Yes, the /posts/index is allowed. So user can access /posts, and / posts/index will be displayed, then there is a login form on the page, so user can login. But I can not get the user to pass the validation on this form. Instead, user will be prompt the /user/login page. --~--~-~--~---

Re: Auth question in 1.2 Beta

2008-03-30 Thread Baz
What do you mean display the login form IN /posts/index? Is /posts/index allowed? On Sun, Mar 30, 2008 at 1:28 AM, overeat <[EMAIL PROTECTED]> wrote: > > Hello All, > > I tried to implement the Authentication with the Auth component > following the instruction in the Cookbook. But it's not work

Auth question in 1.2 Beta

2008-03-30 Thread overeat
Hello All, I tried to implement the Authentication with the Auth component following the instruction in the Cookbook. But it's not working as I expected. Please help me out here! Thanks in advance. I have a model Post, and I need to do authentication before user can do posting. In the /posts/