gevorg/http-auth — Issue #7: Username not accounted for
Author: strager
Created: 2012-01-25 06:32:50+00:00
State: open

When using the basic authentication method, the username seems to be ignored.

(Whitespace added for readability.)

http-auth$ node examples/example.js &
Server running at http://127.0.0.1:1337/

http-auth$ curl -u mia:supergirl http://localhost:1337/
Welcome to private area!

http-auth$ curl -u mia:upergirl http://localhost:1337/

401 Unauthorized

401 Unauthorized

This page requires authorization.

http-auth$ curl -u mi:supergirl http://localhost:1337/
Welcome to private area!