https://github.com/jzo001/forge.security.jwt.service.storage.sqlserver
Jwt Token based authentication / authorization service implementation, SqlServer storage
https://github.com/jzo001/forge.security.jwt.service.storage.sqlserver
jwt mssql provider security sql storage
Last synced: 9 months ago
JSON representation
Jwt Token based authentication / authorization service implementation, SqlServer storage
- Host: GitHub
- URL: https://github.com/jzo001/forge.security.jwt.service.storage.sqlserver
- Owner: JZO001
- License: mit
- Created: 2022-10-23T18:52:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-23T10:45:06.000Z (9 months ago)
- Last Synced: 2025-09-23T12:36:44.099Z (9 months ago)
- Topics: jwt, mssql, provider, security, sql, storage
- Language: C#
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```
```
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.
```c#
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