{"id":21162257,"url":"https://github.com/http-auth/http-auth-connect","last_synced_at":"2025-07-09T14:32:24.994Z","repository":{"id":42933797,"uuid":"237830454","full_name":"http-auth/http-auth-connect","owner":"http-auth","description":"Connect integration for http-auth.","archived":false,"fork":false,"pushed_at":"2024-06-16T10:32:53.000Z","size":313,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-04T09:48:48.007Z","etag":null,"topics":["connect","express","express-js","expressjs","http-auth","javscript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/http-auth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-02T20:16:34.000Z","updated_at":"2023-01-27T10:11:53.000Z","dependencies_parsed_at":"2024-06-18T20:00:06.426Z","dependency_job_id":"87b48516-cd49-4346-a3b1-86e776e43be4","html_url":"https://github.com/http-auth/http-auth-connect","commit_stats":{"total_commits":22,"total_committers":3,"mean_commits":7.333333333333333,"dds":0.5,"last_synced_commit":"819c8f569a2d5ed5fe66fc655ff9354c2e60b78b"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-auth%2Fhttp-auth-connect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-auth%2Fhttp-auth-connect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-auth%2Fhttp-auth-connect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-auth%2Fhttp-auth-connect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/http-auth","download_url":"https://codeload.github.com/http-auth/http-auth-connect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224737107,"owners_count":17361345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connect","express","express-js","expressjs","http-auth","javscript"],"created_at":"2024-11-20T13:24:16.869Z","updated_at":"2024-11-20T13:24:17.489Z","avatar_url":"https://github.com/http-auth.png","language":"JavaScript","readme":"# http-auth-connect\n[Connect](https://github.com/senchalabs/connect) integration with [http-auth](https://github.com/gevorg/http-auth) module.\n\n[![build](https://github.com/http-auth/http-auth-connect/workflows/build/badge.svg)](https://github.com/http-auth/http-auth-connect/actions/workflows/build.yml)\n\n## Installation\n\nVia git (or downloaded tarball):\n\n```bash\n$ git clone git://github.com/http-auth/http-auth-connect.git\n```\nVia [npm](http://npmjs.org/):\n\n```bash\n$ npm install http-auth-connect\n```    \n\n## Usage\n```javascript\n// Express module.\n// eslint-disable-next-line node/no-unpublished-require\nconst express = require(\"express\");\n\n// Authentication module.\n// eslint-disable-next-line node/no-unpublished-require\nconst auth = require(\"http-auth\");\n// eslint-disable-next-line node/no-unpublished-require\nconst authConnect = require(\"http-auth-connect\");\n\nconst basic = auth.basic({\n  realm: \"Simon Area.\",\n  file: __dirname + \"/../data/users.htpasswd\" // gevorg:gpass, Sarah:testpass\n});\n\n// Application setup.\nconst app = express();\napp.use(authConnect(basic));\n\n// Setup route.\napp.get(\"/\", (req, res) =\u003e {\n  res.send(`Hello from express - ${req.user}!`);\n});\n\n// Start server.\napp.listen(1337, () =\u003e {\n  // Log URL.\n  console.log(\"Server running at http://127.0.0.1:1337/\");\n});\n```\n\n\n## Running tests\n\nIt uses [mocha](https://mochajs.org/), so just run following command in package directory:\n\n```bash\n$ npm test\n```\n\n## License\n\nThe MIT License (MIT)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp-auth%2Fhttp-auth-connect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttp-auth%2Fhttp-auth-connect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp-auth%2Fhttp-auth-connect/lists"}