2009年1月5日星期一

Re: [fw-auth] Zend_Auth_Adapter_Http Basic Credentials

I've never used the class, but as far as API that wouldn't be my expectation.

-Matt

On Mon, Jan 5, 2009 at 3:08 PM, Hector Virgen <djvirgen@gmail.com> wrote:
I think they mean to take the user's supplied password, encode with with base64, and pass that to the authentication adapter.

$password = base64_encode($user_supplied_password);

-Hector



On Mon, Jan 5, 2009 at 3:04 PM, Simon Corless <simon@sico.co.uk> wrote:

I'm not sure if I'm miss understanding or whether this is a problem, I've
searched the list and the net and can't find much mentioned about this.

I thought I'd experiment with Zend_Auth_Adapter_Http tonight with basic
authentication (on Windows test server). It all works except for the actual
password.

I get the impression from reading the manual the password should be base64
encoded, however it doesn't seem to use any encoding and just accepts the
plain text (i.e. a base64 encoded credential authorises if you pass it the
base64 encoded string).

"In Basic authentication, the credentials field should be the Base64
encoding of the user's password."

My auth file (password is testing base64 encoded):

admin:test:dGVzdGluZw==

However in the dialog entering "dGVzdGluZw==" as the password authorizes,
entering "testing" does not.

Thanks for any help or pointers.

Simon

-----
Simon

http://www.ajb007.co.uk/
--
View this message in context: http://www.nabble.com/Zend_Auth_Adapter_Http-Basic-Credentials-tp21301353p21301353.html
Sent from the Zend Auth mailing list archive at Nabble.com.



没有评论: