Nerdolando.Bff.Storage.Sqlite
1.0.6
dotnet add package Nerdolando.Bff.Storage.Sqlite --version 1.0.6
NuGet\Install-Package Nerdolando.Bff.Storage.Sqlite -Version 1.0.6
<PackageReference Include="Nerdolando.Bff.Storage.Sqlite" Version="1.0.6" />
<PackageVersion Include="Nerdolando.Bff.Storage.Sqlite" Version="1.0.6" />
<PackageReference Include="Nerdolando.Bff.Storage.Sqlite" />
paket add Nerdolando.Bff.Storage.Sqlite --version 1.0.6
#r "nuget: Nerdolando.Bff.Storage.Sqlite, 1.0.6"
#:package Nerdolando.Bff.Storage.Sqlite@1.0.6
#addin nuget:?package=Nerdolando.Bff.Storage.Sqlite&version=1.0.6
#tool nuget:?package=Nerdolando.Bff.Storage.Sqlite&version=1.0.6
About
Nerdolando.Bff.StorageSqlite
is a library that provides storage for authorization tokens in Nerdolando.Bff.AspNetCore
library.
This package uses Sqlite database to store tokens securely. It does not require any additional setup, as it creates and manages the database file automatically.
Usage - creating Backend For Frontend.
To use this package and make Nerdolando.Bff.AspNetCore
to store authorization tokens inside Sqlite database, just add UseSqliteTokenStorage()
method while configuring Nerdolando.Bff.AspNetCore
:
Install the NuGet package:
dotnet add package Nerdolando.Bff.AspNetCore dotnet add package Nerdolando.Bff.Storage.Sqlite
Configure the BFF services in your
Program.cs
:builder.Services.AddBff(o => { o.FrontUrls = new Dictionary<string, Uri> { { "my-spa-app", new Uri("https://localhost:5001") } //your frontend URL }; o.Endpoints.ChallengeAuthenticationScheme = yourChallengeAuthScheme; o.Endpoints.TargetApiBaseUrl = new Uri("https://api.yourservice.com"); o.Endpoints.TargetApiPath = "/api"; }).UseSqliteTokenStorage(); //from Nerdolando.Bff.Storage.Sqlite - see below
Configuration
You can configure the database file path by setting the SqliteStorageOptions
when adding the service:
builder.Services.AddBff(o =>
{
o.FrontUrls = new Dictionary<string, Uri>
{
{ "my-spa-app", new Uri("https://localhost:5001") } //your frontend URL
};
o.Endpoints.ChallengeAuthenticationScheme = yourChallengeAuthScheme;
o.Endpoints.TargetApiBaseUrl = new Uri("https://api.yourservice.com");
o.Endpoints.TargetApiPath = "/api";
}).UseSqliteTokenStorage(options =>
{
options.FilePath = "path/to/your/database/file.db";
});
Default database file path is bff_storage.db
in the current directory.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 is compatible. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Data.SqlClient (>= 6.1.1)
- Microsoft.Data.Sqlite.Core (>= 9.0.8)
- Microsoft.Extensions.Options (>= 9.0.8)
- Nerdolando.Bff.Abstractions (>= 1.0.6)
- SQLitePCLRaw.bundle_e_sqlite3 (>= 3.0.1)
- SQLitePCLRaw.core (>= 3.0.1)
-
net9.0
- Microsoft.Data.SqlClient (>= 6.1.1)
- Microsoft.Data.Sqlite.Core (>= 9.0.8)
- Microsoft.Extensions.Options (>= 9.0.8)
- Nerdolando.Bff.Abstractions (>= 1.0.6)
- SQLitePCLRaw.bundle_e_sqlite3 (>= 3.0.1)
- SQLitePCLRaw.core (>= 3.0.1)
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.6 | 142 | 9/8/2025 |