HTTP digest authentication can be used with the URI router. * HTTP digest is much more recommended over the use of HTTP Basic auth which doesn't provide any encryption. * If you are running PHP on Apache in CGI/FastCGI mode, you would need to * add the following line to your .htaccess for digest auth to work correctly.
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
This class is tested under Apache 2.2 and Cherokee web server. It should work in both mod_php and cgi mode.
HTTP Digest Authentication doesn't work with PHP in CGI mode, * you have to add this into your .htaccess RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]