Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

TechNobre/PowerUtils.AspNetCore.Authentication.BasicAuth

Repository files navigation

PowerUtils.AspNetCore.Authentication.BasicAuth

⚠️ DEPRECATED

This package has been discontinued because it never evolved, and the code present in this package does not justify its continuation. It is preferable to implement this code directly in the project if necessary. The package will be completely removed after 2024/01/08.

Logo

Utils, helpers, extensions and attributes to work with Basic authentication

NuGet Nuget License: MIT

Support to

  • .NET 6.0
  • .NET 5.0
  • .NET 3.1

Dependencies

  • Microsoft.AspNetCore.Authorization NuGet

How to use

Install NuGet package

This package is available through Nuget Packages: https://www.nuget.org/packages/PowerUtils.AspNetCore.Authentication.BasicAuth

Nuget

Install-Package PowerUtils.AspNetCore.Authentication.BasicAuth

.NET CLI

dotnet add package PowerUtils.AspNetCore.Authentication.BasicAuth

Attributes

BasicAuthentication;

Attribute to limit access to a controller or action with a basic authentication

[BasicAuthentication]
[ApiController]
public class TestController : ControllerBase
{
    [HttpGet]
    public async Task<IActionResult> Get()
    {
        return this.Ok();
    }
}
[ApiController]
public class TestController : ControllerBase
{
    [BasicAuthentication]
    [HttpGet]
    public async Task<IActionResult> Get()
    {
        return this.Ok();
    }
}

Contribution

If you have any questions, comments, or suggestions, please open an issue or create a pull request

About

Utils, helpers, extensions and attributes to work with Basic authentication

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages