Friday, July 30, 2010

Re: Getting Digest Authentication to Work

No it is not and I don't have access to have that changed. Nor is it
something that I can request to be changed.

Is that a showstopper?

thanks,
Michael

On Jul 30, 7:08 am, cricket <zijn.digi...@gmail.com> wrote:
> Does Apache have mod_digest loaded?
>
> On Thu, Jul 29, 2010 at 2:58 PM, Michael <desert.bo...@gmail.com> wrote:
> > I am having difficulty getting digest authentication to work.  The
> > code works if I use basic, but when I switch to digest, the
> > credentials don't authenticate (i.e. the browser username/password
> > popup keeps displaying).  I have tried to md5 hash the password and
> > leave it plain text and neither works.
>
> > Here's the code that works (basic authentication):
>
> >        function beforeFilter() {
> >                if ( $this->RequestHandler->isXml() ) {
> >                        $this->Auth->allow('index');
> >                        $this->Security->loginOptions = array(
> >                                        'type' => 'basic',
> >                                        'realm' => 'WebService'
> >                                );
> >                        $this->Security->loginUsers = array('user' => 'secret');
>
> >                        $this->Security->requireLogin('index');
> >                } else {
> >                        parent::beforeFilter();
> >                }
> >        }
>
> > And here's the code that doesn't (digest authentication):
>
> >        function beforeFilter() {
> >                if ( $this->RequestHandler->isXml() ) {
> >                        $this->Auth->allow('index');
> >                        $this->Security->loginOptions = array(
> >                                        'type' => 'digest',
> >                                        'realm' => 'WebService'
> >                                );
> >                        $this->Security->loginUsers = array('user' => 'secret');
> > /*                      $this->Security->loginUsers = array('user' => md5('secret')); */
>
> >                        $this->Security->requireLogin('index');
> >                } else {
> >                        parent::beforeFilter();
> >                }
> >        }
>
> > What am I still missing?
>
> > Note, I'm using CakePHP 1.2.5.  Web server is Apache 1.3.41.  PHP is
> > 5.2.9.
>
> > thanks in advance,
> > Michael
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions.
>
> > 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 to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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 to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: