{"id":16101442,"url":"https://github.com/mendhak/express-hmac-example","last_synced_at":"2025-06-26T20:09:56.151Z","repository":{"id":141194695,"uuid":"297098241","full_name":"mendhak/Express-HMAC-Example","owner":"mendhak","description":"Example of Express app with HMAC protected route, and examples of how to invoke it in Node and C#","archived":false,"fork":false,"pushed_at":"2024-08-06T15:51:53.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T00:27:34.308Z","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/mendhak.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":"2020-09-20T14:50:18.000Z","updated_at":"2024-08-06T15:51:57.000Z","dependencies_parsed_at":"2024-08-06T18:21:34.519Z","dependency_job_id":"2c54a643-529e-4e3a-9f2e-d2a6c7673f45","html_url":"https://github.com/mendhak/Express-HMAC-Example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mendhak/Express-HMAC-Example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2FExpress-HMAC-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2FExpress-HMAC-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2FExpress-HMAC-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2FExpress-HMAC-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mendhak","download_url":"https://codeload.github.com/mendhak/Express-HMAC-Example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2FExpress-HMAC-Example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262137149,"owners_count":23264674,"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-10-09T18:49:56.768Z","updated_at":"2025-06-26T20:09:56.095Z","avatar_url":"https://github.com/mendhak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Install dependencies\n\n```\nnpm install\n```\n\n\nStart the Express app\n\n```\nnpm start\n```\n\nTry browsing to http://localhost:3000/protected and get blocked.  It requires an [HMAC header](https://github.com/connorjburton/hmac-auth-express#generating-your-hmac-digest). \n\n---\n\n\nGenerate header using C#\n\n```\ndotnet run\n```\n\nCall using C# generated header\n\n```\ncurl -v -X POST -H \"Content-Type: application/json\" -H \"Authentication: $(dotnet run)\" http://localhost:3000/protected --data '{\"a\":\"b\"}'\n```\n\nGenerate header using NodeJS\n\n```\nnode test.js\n```\n\nCall using NodeJS generated header\n\n```\ncurl -v -X POST -H \"Content-Type: application/json\" -H \"Authentication: $(node test.js)\" http://localhost:3000/protected --data '{\"a\":\"b\"}'\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendhak%2Fexpress-hmac-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmendhak%2Fexpress-hmac-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendhak%2Fexpress-hmac-example/lists"}