Compare commits
8 Commits
d43ab36a32
...
4082531c3b
Author | SHA1 | Date |
---|---|---|
Tudor Stanciu | 4082531c3b | |
Tudor Stanciu | e97cc04dc5 | |
Tudor Stanciu | 191f7a0a93 | |
Tudor Stanciu | 0fcdbd10d0 | |
Tudor Stanciu | 6630019135 | |
Tudor Stanciu | 7a232d1225 | |
Tudor Stanciu | 4301509f60 | |
Tudor Stanciu | d5ee739209 |
|
@ -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>
|
|
@ -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.
|
|
@ -0,0 +1,3 @@
|
|||
2.0.0 release [2023-01-31 02:17]
|
||||
◾ Tuitio rebranding
|
||||
◾ Initial release of Tuitio's published language package
|
|
@ -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 |
|
@ -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>();
|
||||
|
|
|
@ -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.
|
|
@ -0,0 +1,3 @@
|
|||
2.0.0 release [2023-01-31 02:17]
|
||||
◾ Tuitio rebranding
|
||||
◾ Initial release of Tuitio's API wrapper
|
|
@ -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 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 Tuitio’s 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>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue