Digiarc.AspNetCore.Extensions.ReCaptcha 1.0.1.13

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package Digiarc.AspNetCore.Extensions.ReCaptcha --version 1.0.1.13
NuGet\Install-Package Digiarc.AspNetCore.Extensions.ReCaptcha -Version 1.0.1.13
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Digiarc.AspNetCore.Extensions.ReCaptcha" Version="1.0.1.13" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Digiarc.AspNetCore.Extensions.ReCaptcha --version 1.0.1.13
#r "nuget: Digiarc.AspNetCore.Extensions.ReCaptcha, 1.0.1.13"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.1.13 1,077 8/11/2022
1.0.1.12 1,045 6/14/2022
1.0.1.11 1,031 6/12/2022

Update dependency package