Soenneker.Blazor.Turnstile
4.0.2569
Prefix Reserved
dotnet add package Soenneker.Blazor.Turnstile --version 4.0.2569
NuGet\Install-Package Soenneker.Blazor.Turnstile -Version 4.0.2569
<PackageReference Include="Soenneker.Blazor.Turnstile" Version="4.0.2569" />
<PackageVersion Include="Soenneker.Blazor.Turnstile" Version="4.0.2569" />
<PackageReference Include="Soenneker.Blazor.Turnstile" />
paket add Soenneker.Blazor.Turnstile --version 4.0.2569
#r "nuget: Soenneker.Blazor.Turnstile, 4.0.2569"
#:package Soenneker.Blazor.Turnstile@4.0.2569
#addin nuget:?package=Soenneker.Blazor.Turnstile&version=4.0.2569
#tool nuget:?package=Soenneker.Blazor.Turnstile&version=4.0.2569
Soenneker.Blazor.Turnstile
A Blazor interop library for Cloudflare Turnstile
This library simplifies the integration of Cloudflare Turnstile into Blazor applications, providing access to options, methods, and events. A demo project showcasing common usages is included.
Please refer to the Cloudflare documentation for further details.
Installation
dotnet add package Soenneker.Blazor.Turnstile
1. Add the following to your Startup.cs file
public void ConfigureServices(IServiceCollection services)
{
services.AddTurnstileInteropAsScoped();
}
Usage
@using Soenneker.Blazor.Turnstile
<Turnstile @ref="_turnstile" OnCallback="OnCallback" Options="_options" ></Turnstile>
@code{
private readonly TurnstileOptions _options = new()
{
SiteKey = "1x00000000000000000000AA" // Testing key
};
private void OnCallback(string token)
{
// Send this token to your server for validation
Logger.LogInformation("OnCallback fired, token: {token}", token);
}
}
?? While 95%+ of the Cloudflare Turnstile JS has been implemented, there are a few features not yet supported. If you need assistance or want to request a new feature, please open an issue or submit a pull request.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Blazor.Extensions.EventCallback (>= 4.0.444)
- Soenneker.Blazor.Utils.ResourceLoader (>= 4.0.1629)
- Soenneker.Gen.EnumValues (>= 4.0.30)
- Soenneker.Quark.Components.Core.Cancellable (>= 4.0.60)
- Soenneker.Utils.Json (>= 4.0.2503)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.2569 | 0 | 3/15/2026 |
| 4.0.2568 | 25 | 3/14/2026 |
| 4.0.2567 | 30 | 3/14/2026 |
| 4.0.2566 | 29 | 3/13/2026 |
| 4.0.2565 | 30 | 3/13/2026 |
| 4.0.2564 | 32 | 3/13/2026 |
| 4.0.2563 | 26 | 3/13/2026 |
| 4.0.2562 | 35 | 3/13/2026 |
| 4.0.2561 | 36 | 3/13/2026 |
| 4.0.2560 | 38 | 3/13/2026 |
| 4.0.2559 | 31 | 3/12/2026 |
| 4.0.2558 | 31 | 3/12/2026 |
| 4.0.2554 | 37 | 3/12/2026 |
| 4.0.2552 | 28 | 3/12/2026 |
| 4.0.2551 | 35 | 3/12/2026 |
| 4.0.2550 | 36 | 3/12/2026 |
| 4.0.2549 | 33 | 3/12/2026 |
| 4.0.2548 | 55 | 3/11/2026 |
| 4.0.2547 | 54 | 3/11/2026 |
| 4.0.2546 | 64 | 3/11/2026 |
Update dependency Soenneker.Utils.Json to 4.0.2503 (#3041)