Netmash.Security.Authentication.Tuitio package update

master
Tudor Stanciu 2023-03-02 18:54:27 +02:00
parent 19e74555f2
commit 4a3963b697
5 changed files with 68 additions and 4 deletions

View File

@ -19,7 +19,7 @@ namespace Netmash.Security.Authentication.Tuitio
Validate(tuitioBaseAddress, options);
// Tuitio
services.UseIdentityServices(tuitioBaseAddress);
services.UseTuitioServices(tuitioBaseAddress);
services.AddSingleton(options);
// configure authentication

View File

@ -2,11 +2,17 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Description>Add authentication handler with Tuitio</Description>
<PackageProjectUrl>https://lab.code-rove.com/gitea/bricks/netmash</PackageProjectUrl>
<Description>Netmash.Security.Authentication.Tuitio configures authentication with a Tuitio instance in a .NET environment for a .NET API.</Description>
<PackageProjectUrl>https://lab.code-rove.com/gitea/bricks/netmash/src/branch/master/src/security/authentication/Netmash.Security.Authentication.Tuitio</PackageProjectUrl>
<RepositoryUrl>https://lab.code-rove.com/gitea/bricks/netmash</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>Netmash Authentication Tuitio</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/ReleaseNotes.txt"))</PackageReleaseNotes>
<PackageTags>Netmash Tuitio HomeLab CodeRove</PackageTags>
<PackageIcon>netmash.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Company>Toodle HomeLab</Company>
<Copyright>Toodle Netmash</Copyright>
<Version>2.0.0</Version>
</PropertyGroup>
@ -15,4 +21,15 @@
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
<None Update="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Update="netmash.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
</Project>

View File

@ -0,0 +1,44 @@
# Netmash.Security.Authentication.Tuitio
[Tuitio](https://lab.code-rove.com/gitea/tudor.stanciu/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:**
```c=!
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=!
<?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
```bash=!
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.

View File

@ -0,0 +1,3 @@
2.0.0 release [2023-02-01 19:29]
◾ Tuitio rebranding
◾ Initial release of Netmash.Security.Authentication.Tuitio

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB