Albatross.Authentication.AspNetCore
7.2.6
Prefix Reserved
See the version list below for details.
dotnet add package Albatross.Authentication.AspNetCore --version 7.2.6
NuGet\Install-Package Albatross.Authentication.AspNetCore -Version 7.2.6
<PackageReference Include="Albatross.Authentication.AspNetCore" Version="7.2.6" />
paket add Albatross.Authentication.AspNetCore --version 7.2.6
#r "nuget: Albatross.Authentication.AspNetCore, 7.2.6"
// Install Albatross.Authentication.AspNetCore as a Cake Addin #addin nuget:?package=Albatross.Authentication.AspNetCore&version=7.2.6 // Install Albatross.Authentication.AspNetCore as a Cake Tool #tool nuget:?package=Albatross.Authentication.AspNetCore&version=7.2.6
The purpose of the Albatross.Authentication namespace is to return the name of the current user. The Albatross.Authentication assembly contains the IGetCurrentUser interface. It has seperate implementation assemblies such as Albatross.Authentication.AspNetCore and Albatross.Authentication.Windows. While the consumer of the ICurrentUser interface will only need to reference the Albatross.Authentication assembly, the actual implementation can be decided by the entry point application.
For example, if the entry point application is a Windows Forms application, the Albatross.Authentication.Windows assembly should be referenced. Albatross.Authentication.Windows.Extensions.RegisterWindowsAuthentication(services) should be called in the service registration code of the application. This will register the Windows implementation of IGetCurrentUser with the DI container.
If the entry point application is an ASP.NET Core application, the Albatross.Authentication.AspNetCore assembly should be referenced. Albatross.Authentication.AspNetCore.Extensions.RegisterAspNetCoreAuthentication(services) should be called in the service registration code of the application. This will register the AspNetCore implementation of IGetCurrentUser with the DI container.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
-
net6.0
- Albatross.Authentication (>= 7.2.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Albatross.Authentication.AspNetCore:
Package | Downloads |
---|---|
Albatross.Hosting
A library for creating .Net Web Api or Service applications with preconfigured settings |
GitHub repositories
This package is not used by any popular GitHub repositories.