VOOZH about

URL: https://www.nuget.org/packages/EngineBay.Authentication/

⇱ NuGet Gallery | EngineBay.Authentication 2.4.0




EngineBay.Authentication 2.4.0

dotnet add package EngineBay.Authentication --version 2.4.0
 
 
NuGet\Install-Package EngineBay.Authentication -Version 2.4.0
 
 
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="EngineBay.Authentication" Version="2.4.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EngineBay.Authentication" Version="2.4.0" />
 
Directory.Packages.props
<PackageReference Include="EngineBay.Authentication" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EngineBay.Authentication --version 2.4.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EngineBay.Authentication, 2.4.0"
 
 
#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.
#:package EngineBay.Authentication@2.4.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EngineBay.Authentication&version=2.4.0
 
Install as a Cake Addin
#tool nuget:?package=EngineBay.Authentication&version=2.4.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

EngineBay.Authentication

👁 NuGet version
👁 Maintainability
👁 Test Coverage

Authentication module for EngineBay published to EngineBay.Authentication on NuGet.

About

Learn about Authentication and Authorization.

This module provides middleware and services for both authentication and authorization. The behaviour of the authentication depends heavily on your configuration options. The module can be configured to use JWT auth, Basic auth, and no auth. JWT is recommended. The latter two should only be used during local testing - not in a production environment.

Simple endpoints to register a user or get the current user are also provided.

This module also provides implementations of ICurrentIdentity, which can be used by modules such as EngineBay.Auditing, to get information about the current user from the HttpContext.

With the authorization middleware, you can specify authorization policies on endpoints to limit access to users with the appropriate permissions.

Usage

When this module is registered and configured, all endpoints will only allow authenticated users by default. To allow unauthenticated users to access an endpoint, you can use the .AllowAnonymous() method on the route builder. For an example, see .

To restrict access to endpoints to users with specific permissions, you can use .RequireAuthorization("Policy.Name") on the route builder. For an example, see AuditEntryEndpoint.

Registration

This module cannot run on its own. You will need to register it in your application to use its functionality. See the Demo API registration guide.

Since this module uses HttpContextAccessor in custom components, you will need to register it on the service collection for dependency injection. This can be done with the line builder.Services.AddHttpContextAccessor();, as seen here.

Environment Variables

See the Documentation Portal.

Dependencies

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows 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
2.4.0 318 2/13/2024
2.3.0 285 2/12/2024
2.2.5 277 1/30/2024
2.2.4 292 1/18/2024
2.2.3 277 1/16/2024
2.2.2 286 1/10/2024
2.2.1 328 12/20/2023
2.2.0 398 12/7/2023
2.1.3 232 12/7/2023
2.1.2 236 12/7/2023
2.1.1 232 12/4/2023
2.1.0 191 11/30/2023
2.0.1 331 11/29/2023
2.0.0 313 11/23/2023
1.1.1 210 11/23/2023
1.1.0 418 11/15/2023
1.0.5 204 11/8/2023
1.0.4 572 11/3/2023
1.0.3 320 11/1/2023
1.0.2 486 10/26/2023
Loading failed