{"repo":"gevorg/http-auth","free":true,"listed":false,"github":"https://github.com/gevorg/http-auth","clone":"git clone https://github.com/gevorg/http-auth.git","description":"Node.js package for HTTP basic and digest access authentication.","language":"JavaScript","stars":369,"topics":["http","digest","digest-access","protection","passport","crypt","realm","passhash","mocha","javascript"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"http-auth Node.js package for HTTP basic and digest access authentication. Installation Via git (or downloaded tarball): Via npm: Usage Please check examples directory for more. Configurations - realm - Authentication realm, by default it is Users . - file - File where user details are stored. - Line format is {user:pass} or {user:passHash} for basic access. - Line format is {user:realm:passHash} for digest access. - Using a callback, it needs to return the same line format, example: file: () = 'adam:adam\\neve:eve', - algorithm - Algorithm that will be used only for digest access authentication. - MD5 by default. - MD5-sess can be set. - qop - Quality of protection that is used only for digest access authentication. - auth is set by default. - none this option is disabling protection. - msg401 - Message for failed authentication 401 page. - msg407 - Message for failed authentication 407 page. - contentType - Content type for failed authentication page. - skipUser - Set this to true , if you don't want req.user to be filled with authentication info. - proxy - Set this to true , if you want to use it with http-proxy. Running tests It uses mocha, so just run following command in package directory: Questions You can also use stackoverflow to ask questions using http-auth tag. Utilities - htpasswd - Node.js package for HTTP Basic Authentication password file utility. - htdigest - Node.js package for HTTP Digest Authentication password file utility. Integrations Please check this l","default_branch":null,"files":null,"tree":[],"storefront":"/r/gevorg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gevorg/http-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}