diff --git a/src/Tuitio.Wrapper/DependencyInjectionExtension.cs b/src/Tuitio.Wrapper/DependencyInjectionExtension.cs index 7d0400c..49c7757 100644 --- a/src/Tuitio.Wrapper/DependencyInjectionExtension.cs +++ b/src/Tuitio.Wrapper/DependencyInjectionExtension.cs @@ -8,7 +8,7 @@ namespace Tuitio.Wrapper { public static class DependencyInjectionExtension { - public static void UseIdentityServices(this IServiceCollection services, string baseAddress) + public static void UseTuitioServices(this IServiceCollection services, string baseAddress) { services.AddSingleton(new ServiceConfiguration(baseAddress)); services.AddHttpClient(); diff --git a/src/Tuitio.Wrapper/README.md b/src/Tuitio.Wrapper/README.md new file mode 100644 index 0000000..05e7625 --- /dev/null +++ b/src/Tuitio.Wrapper/README.md @@ -0,0 +1,38 @@ +# Tuitio.Wrapper + +[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. + +***Tuitio.Wrapper*** is a NuGet package that facilitates integration with a Tuitio instance in a .NET environment by registering a service called IIdentityService in the application's service collection. +It contains two methods, "Authenticate" and "Authorize", which are responsible for calling the appropriate methods from the API controller, ```/identity/authenticate``` or ```/identity/authorize```. These methods provide a simple and convenient way for developers to handle authentication and authorization when communicating with the API controller. +Once the package is installed, all the developer has to do is call the ```UseTuitioServices``` method the application startup. After this step, IIdentityService can be injected into any class in the application. + + +## Package repository +Tuitio.Wrapper can be installed from my self hosted NuGet feed: https://lab.code-rove.com/public-nuget-server/ + +## Installation + +### Visual Studio + +#### NuGet.config file +```xml=! + + + + + + + + +``` + +Configure the above file in the Visual Studio solution or set the new NuGet feed in NuGet Package Manager. After one of this steps, Tuitio.Wrapper can be installed using NuGet Package Manager. + + +### CLI + +```bash=! +dotnet add package Tuitio.Wrapper --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 newline at end of file diff --git a/src/Tuitio.Wrapper/ReleaseNotes.txt b/src/Tuitio.Wrapper/ReleaseNotes.txt new file mode 100644 index 0000000..c33c26d --- /dev/null +++ b/src/Tuitio.Wrapper/ReleaseNotes.txt @@ -0,0 +1,3 @@ +2.0.0 release [2023-01-31 02:17] +◾ Tuitio rebranding +◾ Initial release of Tuitio's API wrapper \ No newline at end of file diff --git a/src/Tuitio.Wrapper/Tuitio.Wrapper.csproj b/src/Tuitio.Wrapper/Tuitio.Wrapper.csproj index 64453d9..3d3526f 100644 --- a/src/Tuitio.Wrapper/Tuitio.Wrapper.csproj +++ b/src/Tuitio.Wrapper/Tuitio.Wrapper.csproj @@ -2,13 +2,18 @@ net6.0 - Tuitio wrapper - Tuitio wrapper + Tuitio.Wrapper facilitates integration with a Tuitio instance in a .NET environment by registering a service called IIdentityService in the application’s service collection. It contains two methods that provide a simple and convenient way for developers to handle authentication and authorization when communicating with the Tuitio’s API controller. https://lab.code-rove.com/gitea/tudor.stanciu/tuitio - Git https://lab.code-rove.com/gitea/tudor.stanciu/tuitio - Tuitio wrapper + Git + $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/ReleaseNotes.txt")) 2.0.0 + logo.png + README.md + Toodle HomeLab + Toodle Tuitio + Tuitio HomeLab CodeRove + MIT @@ -21,4 +26,10 @@ + + + PreserveNewest + + + diff --git a/src/Tuitio.Wrapper/logo.png b/src/Tuitio.Wrapper/logo.png new file mode 100644 index 0000000..5b05cdc Binary files /dev/null and b/src/Tuitio.Wrapper/logo.png differ