express-basic-auth icon indicating copy to clipboard operation
express-basic-auth copied to clipboard

Plug & play basic auth middleware for express

Results 23 express-basic-auth issues
Sort by recently updated
recently updated
newest added

This PR does a couple of things (very happy to split of course) 1. improves support for errors occurring in synchronous and asynchronous authorizers 2. allows authorizers to return promises...

- minor optimizations - be explicit with comparisons

Hi, I use this library to secure my NestJS Swagger endpoints, and it works great! I wanted to see how it works by digging around in the source code, and...

Hi, I added this to my project and it gives me an error whilst building my TS file. ``` $ npm run build > [email protected] build > tsc node_modules/express-basic-auth/express-basic-auth.d.ts:1:23 -...

v2

Migrating an application from Node 16 to Node 18, running the app tests - they fail with this: `TypeError [ERR_INVALID_ARG_TYPE]: The "string" argument must be of type string or an...

The custom authorizer is not called if my request has not Authorization header and the request is rejected automaticaly with "401 NO AUTHORIZED" message which is not what I was...

enhancement
v2

https://github.com/LionC/express-basic-auth/blob/dd17b4de9fee9558269cdc583310bde5331456e7/index.js#L66-L75 Now that UTF-8 has become the de facto universal standard, I suggest adding the UTF-8 `charset` `auth-param` defined by [RFC 7617](https://www.rfc-editor.org/rfc/rfc7617.txt), to the `WWW-Authenticate` header field value `express-basic-auth` produces....

enhancement

Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.2 to 2.1.4. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cookiejar&package-manager=npm_and_yarn&previous-version=2.1.2&new-version=2.1.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies