{"id":23074592,"url":"https://github.com/dexcompiler/request-signatures","last_synced_at":"2025-08-15T16:31:49.291Z","repository":{"id":263694754,"uuid":"889737425","full_name":"dexcompiler/request-signatures","owner":"dexcompiler","description":"Secure API authentication mechanism using Request Signatures","archived":false,"fork":false,"pushed_at":"2024-11-19T23:02:19.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-15T12:05:58.883Z","etag":null,"topics":["api-key-management","api-keys","api-security","authentication","middleware"],"latest_commit_sha":null,"homepage":"","language":"C#","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/dexcompiler.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":"2024-11-17T04:59:57.000Z","updated_at":"2024-12-05T00:43:15.000Z","dependencies_parsed_at":"2024-11-20T00:28:13.929Z","dependency_job_id":null,"html_url":"https://github.com/dexcompiler/request-signatures","commit_stats":null,"previous_names":["dexcompiler/request-signatures"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexcompiler%2Frequest-signatures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexcompiler%2Frequest-signatures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexcompiler%2Frequest-signatures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexcompiler%2Frequest-signatures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dexcompiler","download_url":"https://codeload.github.com/dexcompiler/request-signatures/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229930063,"owners_count":18146434,"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":["api-key-management","api-keys","api-security","authentication","middleware"],"created_at":"2024-12-16T08:28:51.171Z","updated_at":"2024-12-16T08:28:51.251Z","avatar_url":"https://github.com/dexcompiler.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# API Request Signing\nThis project demonstrates a secure API authentication mechanism using Request Signatures implemented in C#.\nInstead of sending API keys directly in the request, this approach uses cryptographic signatures to verify request authenticity.\n\n## Why is this important?\nRequest signing provides several security advantages over simple API keys:\n1. **Non-repudiation**: The server can prove that a request was made by a specific client.\n2. **Request Integrity**: The server can verify that the request has not been tampered with in transit.\n3. **No Secret Transmission**: The client does not need to send the secret key in the request. \n4. **Replay Protection**: Time-bound requests prevent replay attacks.\n\n### Request Flow\n```mermaid\nsequenceDiagram\n    participant C as Client\n    participant S as Server\n    Note over Client: Constructs request with:\u003cbr/\u003e- HTTP Method\u003cbr/\u003e- Endpoint\u003cbr/\u003e- Timestamp\u003cbr/\u003e- Request Body\n    Note over Client: Signs request using\u003cbr/\u003esecret key\n    C-\u003e\u003eS: Send request with headers:\u003cbr/\u003eX-Client-Id\u003cbr/\u003eX-Timestamp\u003cbr/\u003eX-Signature\n    Note over Server: Validates timestamp\u003cbr/\u003efreshness\n    Note over Server: Retrieves client's\u003cbr/\u003esecret key\n    Note over Server: Recomputes signature\u003cbr/\u003eand compares\n    S-\u003e\u003eC: 401 Unauthorized\n    C-\u003e\u003eS: Authorization Header\n    S-\u003e\u003eC: 200 OK\n\n```\n\n### Project Structure\n```text\n├── RequestSigning.Server/      # API server implementation\n├── RequestSigning.Client/      # Demo client implementation\n└── RequestSigning.Common/      # Shared models and utilities\n```\n\n### Running the Demo\n1. Clone the repository\n2. Start the server: `cd RequestSigning.Server \u0026\u0026 dotnet run`\n3. In a new terminal, start the client: `cd RequestSigning.Client \u0026\u0026 dotnet run`\n\n\nGood Luck!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexcompiler%2Frequest-signatures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdexcompiler%2Frequest-signatures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexcompiler%2Frequest-signatures/lists"}