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
<PackageReference Include="Forge.Security.Jwt.Service.Storage.SqlServer" Version="1.0.5" />
paket add Forge.Security.Jwt.Service.Storage.SqlServer --version 1.0.5
#r "nuget: Forge.Security.Jwt.Service.Storage.SqlServer, 1.0.5"
// 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 | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- Forge.Security.Jwt.Shared (>= 1.7.1)
- Microsoft.EntityFrameworkCore (>= 6.0.11)
- Microsoft.EntityFrameworkCore.SqlServer (>= 6.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
-
net7.0
- Forge.Security.Jwt.Shared (>= 1.7.1)
- Microsoft.EntityFrameworkCore (>= 7.0.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
-
net8.0
- Forge.Security.Jwt.Shared (>= 1.7.1)
- Microsoft.EntityFrameworkCore (>= 8.0.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.