Forge.Security.Jwt.Client 1.3.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Forge.Security.Jwt.Client --version 1.3.1                
NuGet\Install-Package Forge.Security.Jwt.Client -Version 1.3.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Forge.Security.Jwt.Client" Version="1.3.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Forge.Security.Jwt.Client --version 1.3.1                
#r "nuget: Forge.Security.Jwt.Client, 1.3.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Forge.Security.Jwt.Client as a Cake Addin
#addin nuget:?package=Forge.Security.Jwt.Client&version=1.3.1

// Install Forge.Security.Jwt.Client as a Cake Tool
#tool nuget:?package=Forge.Security.Jwt.Client&version=1.3.1                

Forge.Security.Jwt.Client

Forge.Security.Jwt.Client is a library that provides client side authentication service for client applications.

Installing

To install the package add the following line to you csproj file replacing x.x.x with the latest version number:

<PackageReference Include="Forge.Security.Jwt.Client" Version="x.x.x" />

You can also install via the .NET CLI with the following command:

dotnet add package Forge.Security.Jwt.Client

If you're using Visual Studio you can also install via the built in NuGet package manager.

Setup

You will need to register the authentication client services with the service collection in your Startup.cs file in Blazor Server.

public void ConfigureServices(IServiceCollection services)
{
    services.AddForgeJwtClientAuthenticationCore();
}

Or in your Program.cs file in Blazor WebAssembly.

public static async Task Main(string[] args)
{
    var builder = WebAssemblyHostBuilder.CreateDefault(args);
    builder.RootComponents.Add<App>("app");

    builder.Services.AddForgeJwtClientAuthenticationCore();

    await builder.Build().RunAsync();
}

Registering services as Singleton

If you would like to register authentication client services as singletons, it is possible by using the following method:

builder.Services.AddForgeJwtClientAuthenticationCoreAsSingleton();

This method is not recommended in the most cases, try to avoid using it.

Usage

I have created a few examples about how to use Forge.Security.Jwt.Client in WASM / MAUI application. Please find Forge.Yode solution in my repositories, the "Apps" namespace entries in the projects means an application type:

  • ASP.NET Core Hosted
  • MAUI
  • WinForms
  • WPF

Please also check the following projects in my repositories:

  • Forge.Yoda
  • Forge.Security.Jwt.Service
  • Forge.Security.Jwt.Service.Storage.SqlServer
  • Forge.Security.Jwt.Client
  • Forge.Security.Jwt.Client.Storage.Browser
  • Forge.Wasm.BrowserStorages
  • Forge.Wasm.BrowserStorages.NewtonSoft.Json
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Forge.Security.Jwt.Client:

Package Downloads
Sesame.Web.Clients.Authentication

Sesame Web Clients Authentication

Sesame.Web.Clients.MarketVision

Sesame Web Clients Market Vision

Sesame.Web.Clients.Nostromo

Sesame Web Clients Nostromo

Sesame.Web.Clients.DataHub

Sesame Web Clients DataHub

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.3 418 12/5/2023
1.3.2 324 6/1/2023
1.3.1 152 5/30/2023
1.3.0 381 5/25/2023
1.2.9 560 5/18/2023
1.2.8 145 5/17/2023
1.2.6 349 12/22/2022
1.2.4 334 11/21/2022
1.2.3 388 10/24/2022