note 53250 deleted from features.http-auth by nlopess
| From: | nlopess@php.net | Date: | Sun, 23 Apr 2006 22:07:02 +0000 |
| Subject: | note 53250 deleted from features.http-auth by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109192@lists.php.net to get a copy of this message | ||
Note Submitter: mixailo at NOSPAM dot mercenaries dot ru
----
The example of Digest authorization is not completely correct.
There should be:
<?
header('WWW-Authenticate: Digest realm="'.$realm.'", qop="auth",
nonce="'.uniqid("55").'",
opaque="'.md5($realm).'"');
?>
Instead of
<?
header('WWW-Authenticate: Digest realm="'.$realm.'" qop="auth"
nonce="'.uniqid("55").'"
opaque="'.md5($realm).'"');
?>
Please note the commas.