Digiarc.AspNetCore.Extensions.ReCaptcha
1.0.1.13
dotnet add package Digiarc.AspNetCore.Extensions.ReCaptcha --version 1.0.1.13
NuGet\Install-Package Digiarc.AspNetCore.Extensions.ReCaptcha -Version 1.0.1.13
<PackageReference Include="Digiarc.AspNetCore.Extensions.ReCaptcha" Version="1.0.1.13" />
paket add Digiarc.AspNetCore.Extensions.ReCaptcha --version 1.0.1.13
#r "nuget: Digiarc.AspNetCore.Extensions.ReCaptcha, 1.0.1.13"
// Install Digiarc.AspNetCore.Extensions.ReCaptcha as a Cake Addin
#addin nuget:?package=Digiarc.AspNetCore.Extensions.ReCaptcha&version=1.0.1.13
// Install Digiarc.AspNetCore.Extensions.ReCaptcha as a Cake Tool
#tool nuget:?package=Digiarc.AspNetCore.Extensions.ReCaptcha&version=1.0.1.13
Digiarc (Pty) Ltd
Digiarc is an innovative company that strives for customer satisfaction and world class service. We offer bespoke business software solutions with up-to-date technology and well formed processes.
Installation
You can use the NUGET package manager for installation.
Platform Support
This package is made for ASP.Net Core applications as it makes use of dependency injection on the IServiceCollection.
Usage
using Digiarc.AspNetCore.Extensions.ReCaptcha;
# ConfigureServices(IServiceCollection services)
services.AddReCaptchaValidation();
# Invoke ReCaptcha Validation (ActionExecutingContext)
var service = context.HttpContext.RequestServices.GetService<IReCaptchaService>();
if (service is null)
context.Result = new BadRequestObjectResult("Invalid ReCaptcha response");
var result = service.ValidateReCaptcha(string);
if (!result.Success)
context.Result = new BadRequestObjectResult("Invalid ReCaptcha response");
# Invoke ReCaptcha Validation (Controller)
private readonly IReCaptchaService _service;
public HomeController(IReCaptchaService service)
{
_service = service;
}
[HttpGet]
[Route("[action]")]
public IActionResult ReCaptchaTest()
{
var result = _service.ValidateReCaptcha("[Replace With Your Google ReCaptcha Site Key]");
return Ok(new { result = result.Success, errorCodes = result.ErrorCodes.GenericToString() });
}
Contributing
Contributions will not be accepted as this not an open source project.
License
This package is licensed under LGPL and will not accept external intervention.
For more information you can visit the GNU Lesser General Public License Page.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Digiarc.Extensions (>= 1.0.1.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Update dependency package