Installations
npm install http-auth-connect
Score
99.6
Supply Chain
78.9
Quality
75.7
Maintenance
100
Vulnerability
100
License
Developer
http-auth
Developer Guide
Module System
CommonJS
Min. Node Version
>=8
Typescript Support
No
Node Version
16.17.0
NPM Version
8.15.0
Statistics
5 Stars
35 Commits
2 Watching
3 Branches
2 Contributors
Updated on 27 Jan 2023
Bundle Size
218.00 B
Minified
173.00 B
Minified + Gzipped
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
47,187,261
Last day
-0.7%
65,936
Compared to previous day
Last week
3.9%
354,665
Compared to previous week
Last month
4.5%
1,488,491
Compared to previous month
Last year
-1.7%
15,983,955
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
http-auth-connect
Connect integration with http-auth module.
Installation
Via git (or downloaded tarball):
1$ git clone git://github.com/http-auth/http-auth-connect.git
Via npm:
1$ npm install http-auth-connect
Usage
1// Express module. 2// eslint-disable-next-line node/no-unpublished-require 3const express = require("express"); 4 5// Authentication module. 6// eslint-disable-next-line node/no-unpublished-require 7const auth = require("http-auth"); 8// eslint-disable-next-line node/no-unpublished-require 9const authConnect = require("http-auth-connect"); 10 11const basic = auth.basic({ 12 realm: "Simon Area.", 13 file: __dirname + "/../data/users.htpasswd" // gevorg:gpass, Sarah:testpass 14}); 15 16// Application setup. 17const app = express(); 18app.use(authConnect(basic)); 19 20// Setup route. 21app.get("/", (req, res) => { 22 res.send(`Hello from express - ${req.user}!`); 23}); 24 25// Start server. 26app.listen(1337, () => { 27 // Log URL. 28 console.log("Server running at http://127.0.0.1:1337/"); 29});
Running tests
It uses mocha, so just run following command in package directory:
1$ npm test
License
The MIT License (MIT)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/http-auth/http-auth-connect/build.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/http-auth/http-auth-connect/build.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/http-auth/http-auth-connect/publish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/http-auth/http-auth-connect/publish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/http-auth/http-auth-connect/publish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/http-auth/http-auth-connect/publish.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/build.yml:21
- Info: 0 out of 6 GitHub-owned GitHubAction dependencies pinned
- Info: 2 out of 3 npmCommand dependencies pinned
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/build.yml:1
- Warn: no topLevel permission defined: .github/workflows/publish.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 24 are checked with a SAST tool
Reason
13 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
Score
2.6
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to http-auth-connect
oauth
Library for interacting with OAuth 1.0, 1.0A, 2 and Echo. Provides simplified client access and allows for construction of more complex apis and OAuth providers.
basic-auth-connect
Basic auth middleware for node and connect
angular-auth-oidc-client
Angular Lib for OpenID Connect & OAuth2
registry-auth-token
Get the auth token set for an npm registry (if any)