{"id":21046004,"url":"https://github.com/texnomic/hcaptcha","last_synced_at":"2025-05-15T18:30:51.032Z","repository":{"id":37885970,"uuid":"274160099","full_name":"Texnomic/hCaptcha","owner":"Texnomic","description":"ASP.NET Core hCaptcha Component for Server-Side Blazor.","archived":false,"fork":false,"pushed_at":"2023-02-15T03:57:46.000Z","size":73,"stargazers_count":7,"open_issues_count":5,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T23:53:42.089Z","etag":null,"topics":["blazor","component-library","csharp","dotnet","frontend","hcaptcha","javascript","razor","razor-components"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Texnomic.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}},"created_at":"2020-06-22T14:29:31.000Z","updated_at":"2023-11-21T09:48:44.000Z","dependencies_parsed_at":"2024-01-22T06:54:12.250Z","dependency_job_id":null,"html_url":"https://github.com/Texnomic/hCaptcha","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/Texnomic%2FhCaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Texnomic%2FhCaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Texnomic%2FhCaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Texnomic%2FhCaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Texnomic","download_url":"https://codeload.github.com/Texnomic/hCaptcha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225367979,"owners_count":17463330,"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":["blazor","component-library","csharp","dotnet","frontend","hcaptcha","javascript","razor","razor-components"],"created_at":"2024-11-19T14:27:39.790Z","updated_at":"2024-11-19T14:27:40.433Z","avatar_url":"https://github.com/Texnomic.png","language":"C#","funding_links":["https://img.shields.io/static/v1?logo=PayPal\u0026label=PayPal\u0026message=https://www.paypal.me/texnomic\u0026color=blue","https://www.paypal.me/texnomic"],"categories":[],"sub_categories":[],"readme":"![Blazor](https://raw.githubusercontent.com/Texnomic/hCaptcha/master/Logo.png)\n## Texnomic.Blazor.hCaptcha\n\n![NuGet](https://img.shields.io/nuget/vpre/Texnomic.Blazor.hCaptcha?logo=NuGet\u0026label=NuGet%20%7C%20Texnomic.Blazor.hCaptcha\u0026logoColor=blue\u0026color=blue)\n\nASP.NET Core hCaptcha Component for Server-Side Blazor.\n\n## Installation\n\n```pwsh\nPM\u003e Install-Package Texnomic.Blazor.hCaptcha\n```\n\n## Setup\n\n\n1. Reference hCaptcha \u0026 NuGet Package JavaScript Files In `Pages/_Host.cshtml` File:\n\n    ```html\n    \u003chead\u003e\n\n    \u003cscript src=\"https://hcaptcha.com/1/api.js\u0026render=explicit\" async type=\"text/javascript\"\u003e\u003c/script\u003e\n\n    \u003cscript src=\"_content/Texnomic.Blazor.hCaptcha/scripts/hCaptcha.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\n    \u003c/head\u003e\n    ```\n\n2. Add Package Configuration To Dependancy Injection Services in `Startup.cs` File:\n\n    ```csharp\n    using Texnomic.Blazor.hCaptcha.Extensions;\n\n    public void ConfigureServices(IServiceCollection Services)\n    {\n        Services.AddHttpClient();\n        Services.AddHCaptcha(Options =\u003e\n        {\n            Options.SiteKey = \"10000000-ffff-ffff-ffff-000000000001\";\n            Options.Secret = \"0x0000000000000000000000000000000000000000\";\n        });\n    }\n    ```\n\n3. Create Callback Function \u0026 Backing Field To Capture Captcha Result In `Example.razor.cs` File:\n\n    ```csharp\n    private bool IsCaptchaValid { get; set; }\n\n    protected void hCaptchaCallback(bool Result) =\u003e IsCaptchaValid = Result;\n    ```\n\n4. Finally, Drop-In hCaptcha Component \u0026 Bind Callback Function In `Example.razor` File:\n\n    ```html\n    \u003cHCaptcha Callback=\"hCaptchaCallback\" Theme=\"Theme.Dark\"\u003e\u003c/HCaptcha\u003e\n    ```\n\n\n## Donations\n\n* [![PayPal](https://img.shields.io/static/v1?logo=PayPal\u0026label=PayPal\u0026message=https://www.paypal.me/texnomic\u0026color=blue)](https://www.paypal.me/texnomic)\n* ![Bitcoin](https://img.shields.io/static/v1?logo=Bitcoin\u0026label=BTC\u0026message=13wMqy8yg9yhJAAP2AXu8A2De1ptAYh6s4\u0026color=orange)\n* ![Ethereum](https://img.shields.io/static/v1?logo=Ethereum\u0026label=Ethereum\u0026message=0xfE171b1C5C5584b65ec58a6FA2009f6ECeE812D7\u0026color=black\u0026logoColor=black)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftexnomic%2Fhcaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftexnomic%2Fhcaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftexnomic%2Fhcaptcha/lists"}