Albatross.Authentication.Windows
7.2.6
Prefix Reserved
See the version list below for details.
dotnet add package Albatross.Authentication.Windows --version 7.2.6
NuGet\Install-Package Albatross.Authentication.Windows -Version 7.2.6
<PackageReference Include="Albatross.Authentication.Windows" Version="7.2.6" />
paket add Albatross.Authentication.Windows --version 7.2.6
#r "nuget: Albatross.Authentication.Windows, 7.2.6"
// Install Albatross.Authentication.Windows as a Cake Addin #addin nuget:?package=Albatross.Authentication.Windows&version=7.2.6 // Install Albatross.Authentication.Windows as a Cake Tool #tool nuget:?package=Albatross.Authentication.Windows&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-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
-
net6.0-windows7.0
- Albatross.Authentication (>= 7.2.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- System.Security.Principal.Windows (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.