{"id":21117177,"url":"https://github.com/hezhii/http-auth","last_synced_at":"2025-03-14T10:43:49.847Z","repository":{"id":91197398,"uuid":"127640766","full_name":"hezhii/http-auth","owner":"hezhii","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-15T02:54:56.000Z","size":749,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-14T12:31:51.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hezhii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-04-01T15:15:41.000Z","updated_at":"2019-03-15T02:54:57.000Z","dependencies_parsed_at":"2023-06-29T03:15:27.854Z","dependency_job_id":null,"html_url":"https://github.com/hezhii/http-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Fhttp-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Fhttp-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Fhttp-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Fhttp-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hezhii","download_url":"https://codeload.github.com/hezhii/http-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243565413,"owners_count":20311702,"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":[],"created_at":"2024-11-20T02:39:46.552Z","updated_at":"2025-03-14T10:43:49.815Z","avatar_url":"https://github.com/hezhii.png","language":"JavaScript","readme":"# HTTP 身份认证\n\n某些页面、数据、功能等只想让特定的人甚至本人访问，为了实现这个目标，那么必不可少的就是认证功能，例如：常见的输入用户名、密码的表单验证或者移动端的手机短信验证等。\n\nHTTP 本身也提供了身份认证机制，包括：**基本认证**和**摘要认证**。\n\n此仓库实现了服务端的基本认证和摘要认证。\n\n## 如何测试\n\n1. 克隆项目并安装依赖，服务端基于 Express 进行构建。\n\n```bash\n$ git clone https://github.com/hezhii/http-auth.git\n$ cd http-auth\n$ npm install\n```\n\n2. 启动服务并通过浏览器页面测试\n\n```bash\n$ npm start\n```\n\n3. 服务启动后，通过浏览器访问 http://localhost:8080 页面，点击 **BASIC 认证**测试基本认证，点击 **DIGEST 认证**\b测试摘要认证。\n\n## 了解更多\n\n关于 HTTP 认证机制的具体细节，可以访问[我的博客](blog.whezh.com/http-auth/)进行了解。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhezhii%2Fhttp-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhezhii%2Fhttp-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhezhii%2Fhttp-auth/lists"}