Forge.Security.Jwt.Service.Storage.SqlServer 1.0.5

dotnet add package Forge.Security.Jwt.Service.Storage.SqlServer --version 1.0.5
NuGet\Install-Package Forge.Security.Jwt.Service.Storage.SqlServer -Version 1.0.5
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.Service.Storage.SqlServer" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Forge.Security.Jwt.Service.Storage.SqlServer --version 1.0.5
#r "nuget: Forge.Security.Jwt.Service.Storage.SqlServer, 1.0.5"
#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.Service.Storage.SqlServer as a Cake Addin
#addin nuget:?package=Forge.Security.Jwt.Service.Storage.SqlServer&version=1.0.5

// Install Forge.Security.Jwt.Service.Storage.SqlServer as a Cake Tool
#tool nuget:?package=Forge.Security.Jwt.Service.Storage.SqlServer&version=1.0.5

Forge.Security.Jwt.Service.Storage.SqlServer

Forge.Security.Jwt.Service.Storage.SqlServer is a library extension that provides SqlServer storage on service side for the generated tokens.

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.Service.Storage.SqlServer" Version="x.x.x" />

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

dotnet add Forge.Security.Jwt.Service.Storage.SqlServer

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

Setup

You will need to register the storage provider services with the service collection in your Startup.cs file in your server.

public void ConfigureServices(IServiceCollection services)
{
	// ... preinitialization steps
    services.AddForgeJwtServerAuthenticationCore();

	// HERE IT IS, always add this code after the "Forge.Security.Jwt.Service" library initialization
	services.AddForgeJwtServiceSqlServerStorage(config => {
		config.ConnectionString = Configuration.GetConnectionString("ServiceStorageConnection");
	});
}

Do not forget to add your connection string into your configuration file.

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 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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.5 209 12/5/2023
1.0.4 136 5/25/2023
1.0.3 109 5/19/2023
1.0.2 126 5/16/2023
1.0.1 335 11/21/2022
1.0.0 322 10/24/2022