Netmash.Security.Authentication.Tuitio 2.2.0
Netmash.Security.Authentication.Tuitio
Tuitio is a simple identity server implementation focused strictly on the needs of my home lab.
Netmash.Security.Authentication.Tuitio is a NuGet package that configures authentication with a Tuitio instance in a .NET environment for a .NET API.
Once the package is installed, all the developer has to do is call the AddTuitioAuthentication
method at application startup. After this step, the [Authorize]
attribute can be added to any controller from application.
Code snippet:
public static void ConfigureServices(this IServiceCollection services, IConfiguration configuration)
{
services.AddTuitioAuthentication("httpe://<domain>/tuitio/api/");
}
Package repository
Netmash.Security.Authentication.Tuitio can be installed from my self hosted NuGet feed: https://lab.code-rove.com/public-nuget-server/
Installation
Visual Studio
NuGet.config file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="lab.nuget" value="https://lab.code-rove.com/public-nuget-server/v3/index.json" />
</packageSources>
</configuration>
Configure the above file in the Visual Studio solution or set the new NuGet feed in NuGet Package Manager. After one of this steps, Netmash.Security.Authentication.Tuitio can be installed using NuGet Package Manager.
CLI
dotnet add package Netmash.Security.Authentication.Tuitio --source https://lab.code-rove.com/public-nuget-server/v3/index.json
Run the above command in a console open in a .NET project directory.
No packages depend on Netmash.Security.Authentication.Tuitio.
.NET 6.0
- Microsoft.AspNetCore.Authentication (>= 2.2.0)
- Tuitio.Wrapper (>= 2.2.0)