Compare commits

..

8 Commits

Author SHA1 Message Date
Tudor Stanciu 4082531c3b . 2023-02-28 18:48:34 +02:00
Tudor Stanciu e97cc04dc5 Tuitio.Wrapper description update 2023-02-28 18:48:07 +02:00
Tudor Stanciu 191f7a0a93 Tuitio.Wrapper update 2023-02-28 18:44:23 +02:00
Tudor Stanciu 0fcdbd10d0 Tuitio.Wrapper nuget package changes 2023-02-28 18:40:51 +02:00
Tudor Stanciu 6630019135 Tuitio.PublishedLanguage description update 2023-02-27 08:50:29 +02:00
Tudor Stanciu 7a232d1225 Tuitio.PublishedLanguage readme update 2023-02-27 08:38:09 +02:00
Tudor Stanciu 4301509f60 Tuitio.PublishedLanguage nuget definition improvements 2023-02-27 08:32:22 +02:00
Tudor Stanciu d5ee739209 self hosted nuget server url update 2023-02-26 03:24:14 +02:00
10 changed files with 121 additions and 9 deletions

View File

@ -3,6 +3,6 @@
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="sta.nuget" value="https://lab.code-rove.com/public-nuget-server/nuget" />
<add key="lab.nuget" value="https://lab.code-rove.com/public-nuget-server/v3/index.json" />
</packageSources>
</configuration>

View File

@ -0,0 +1,35 @@
# Tuitio.PublishedLanguage
[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.PublishedLanguage*** is a nuget package that contains Tuitio's published language. It facilitates communication with a Tuitio instance in a .NET environment by exposing DTOs (Data Transfer Objects) and constants.
## Package repository
Tuitio.PublishedLanguage 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, Tuitio.PublishedLanguage can be installed using NuGet Package Manager.
### CLI
```bash=!
dotnet add package Tuitio.PublishedLanguage --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-01-31 02:17]
◾ Tuitio rebranding
◾ Initial release of Tuitio's published language package

View File

@ -1,13 +1,30 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Description>Tuitio published language package</Description>
<Description>Tuitio's published language package facilitates communication with a Tuitio instance in a .NET environment by exposing DTOs (Data Transfer Objects) and constants.</Description>
<PackageProjectUrl>https://lab.code-rove.com/gitea/tudor.stanciu/tuitio</PackageProjectUrl>
<RepositoryUrl>https://lab.code-rove.com/gitea/tudor.stanciu/tuitio</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageReleaseNotes>Tuitio published language package</PackageReleaseNotes>
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/ReleaseNotes.txt"))</PackageReleaseNotes>
<Version>2.0.0</Version>
<PackageIcon>logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Company>Toodle HomeLab</Company>
<Copyright>Toodle Tuitio</Copyright>
<PackageTags>Tuitio HomeLab CodeRove</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
<ItemGroup>
<None Update="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Update="logo.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
</Project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -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<IIdentityService, IdentityService>();

View File

@ -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 Tuitio's API.
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=!
<?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, 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.

View File

@ -0,0 +1,3 @@
2.0.0 release [2023-01-31 02:17]
◾ Tuitio rebranding
◾ Initial release of Tuitio's API wrapper

View File

@ -2,13 +2,18 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Description>Tuitio wrapper</Description>
<PackageReleaseNotes>Tuitio wrapper</PackageReleaseNotes>
<Description>Tuitio.Wrapper facilitates integration with a Tuitio instance in a .NET environment by registering a service called IIdentityService in the applications service collection. It contains two methods that provide a simple and convenient way for developers to handle authentication and authorization when communicating with Tuitios API.</Description>
<PackageProjectUrl>https://lab.code-rove.com/gitea/tudor.stanciu/tuitio</PackageProjectUrl>
<RepositoryType>Git</RepositoryType>
<RepositoryUrl>https://lab.code-rove.com/gitea/tudor.stanciu/tuitio</RepositoryUrl>
<PackageTags>Tuitio wrapper</PackageTags>
<RepositoryType>Git</RepositoryType>
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/ReleaseNotes.txt"))</PackageReleaseNotes>
<Version>2.0.0</Version>
<PackageIcon>logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Company>Toodle HomeLab</Company>
<Copyright>Toodle Tuitio</Copyright>
<PackageTags>Tuitio HomeLab CodeRove</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
<ItemGroup>
@ -21,4 +26,15 @@
<ProjectReference Include="..\Tuitio.PublishedLanguage\Tuitio.PublishedLanguage.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Update="logo.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
</Project>

BIN
src/Tuitio.Wrapper/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB