PulseTrade.Comm.Login.SqlServer
0.1.0-alpha3
dotnet add package PulseTrade.Comm.Login.SqlServer --version 0.1.0-alpha3
NuGet\Install-Package PulseTrade.Comm.Login.SqlServer -Version 0.1.0-alpha3
<PackageReference Include="PulseTrade.Comm.Login.SqlServer" Version="0.1.0-alpha3" />
<PackageVersion Include="PulseTrade.Comm.Login.SqlServer" Version="0.1.0-alpha3" />
<PackageReference Include="PulseTrade.Comm.Login.SqlServer" />
paket add PulseTrade.Comm.Login.SqlServer --version 0.1.0-alpha3
#r "nuget: PulseTrade.Comm.Login.SqlServer, 0.1.0-alpha3"
#:package PulseTrade.Comm.Login.SqlServer@0.1.0-alpha3
#addin nuget:?package=PulseTrade.Comm.Login.SqlServer&version=0.1.0-alpha3&prerelease
#tool nuget:?package=PulseTrade.Comm.Login.SqlServer&version=0.1.0-alpha3&prerelease
PulseTrade.Comm.Login.SqlServer
PulseTrade.Comm.Login.SqlServer is the SQL Server durable session-store and credential verifier provider for PulseTrade.Comm.Login.Core.
Journal / Snapshot / DB
This package does not use Akka.Persistence journal or snapshot-store tables. It owns SQL Server tables in the caller-selected database.
Current database selection:
LoginSqlServerProviderConfig.create connectionStringuses the database in the supplied connection string.LoginSqlServerProviderConfig.fromEnvironment envNameis legacy/local support only. Production hosts must use encrypted-file secret resolution before callingcreate.EnsureDatabase=falseby default; setwithEnsureDatabase trueonly when the host wants this package to create the database fromInitial Catalog.Schema="dbo"by default; override withwithSchema.
Session DDL:
CREATE TABLE [dbo].[LoginSession](
SessionId NVARCHAR(256) NOT NULL CONSTRAINT PK_LoginSession PRIMARY KEY,
AccessTokenHash CHAR(64) NOT NULL,
RefreshTokenHash CHAR(64) NOT NULL,
PrincipalId NVARCHAR(256) NOT NULL,
Provider NVARCHAR(128) NOT NULL,
ExpiresAtUtc DATETIMEOFFSET(7) NOT NULL,
RefreshExpiresAtUtc DATETIMEOFFSET(7) NOT NULL,
Revoked BIT NOT NULL,
RecordJson NVARCHAR(MAX) NOT NULL,
UpdatedAtUtc DATETIMEOFFSET(7) NOT NULL,
InsertedAtUtc DATETIMEOFFSET(7) NOT NULL
);
CREATE INDEX IX_LoginSession_AccessTokenHash ON [dbo].[LoginSession](AccessTokenHash);
CREATE INDEX IX_LoginSession_RefreshTokenHash ON [dbo].[LoginSession](RefreshTokenHash);
CREATE INDEX IX_LoginSession_Principal ON [dbo].[LoginSession](PrincipalId, Provider);
RecordJson uses ptc.login.session-store.snapshot.v1 row JSON from PulseTrade.Comm.Login.Core.LoginSessionRecordJson. Token hashes are indexed for lookup; the full opaque tokens remain inside RecordJson, so the database is sensitive runtime state. Runtime DDL quotes schema identifiers and SQL string literals before generating OBJECT_ID / CREATE TABLE statements.
Credential DDL:
CREATE TABLE [dbo].[LoginUser](
UserId NVARCHAR(256) NOT NULL CONSTRAINT PK_LoginUser PRIMARY KEY,
LoginName NVARCHAR(256) NOT NULL,
DisplayName NVARCHAR(256) NULL,
Provider NVARCHAR(128) NOT NULL,
Enabled BIT NOT NULL,
PasswordAlgorithm NVARCHAR(64) NOT NULL,
PasswordHashBase64 NVARCHAR(512) NOT NULL,
PasswordSaltBase64 NVARCHAR(512) NOT NULL,
PasswordIterations INT NOT NULL,
CreatedAtUtc DATETIMEOFFSET(7) NOT NULL,
UpdatedAtUtc DATETIMEOFFSET(7) NOT NULL,
CONSTRAINT UQ_LoginUser_LoginName UNIQUE(LoginName)
);
CREATE TABLE [dbo].[LoginUserGroup](
UserId NVARCHAR(256) NOT NULL,
GroupName NVARCHAR(256) NOT NULL,
CONSTRAINT PK_LoginUserGroup PRIMARY KEY(UserId, GroupName)
);
CREATE TABLE [dbo].[LoginUserRole](
UserId NVARCHAR(256) NOT NULL,
RoleName NVARCHAR(256) NOT NULL,
CONSTRAINT PK_LoginUserRole PRIMARY KEY(UserId, RoleName)
);
Passwords are stored as PBKDF2-HMACSHA256 hashes with per-user salt and iteration metadata. SqlServerLoginCredentialVerifier implements ILoginCredentialVerifier and returns an AclPrincipal with SQL-projected groups/roles. It does not authorize commands; authorization remains the responsibility of PulseTrade.Comm.ACL.Core.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- FSharp.Core (>= 10.1.301)
- Microsoft.Data.SqlClient (>= 7.0.1)
- PulseTrade.Comm.Login.Core (= 0.1.0-alpha5)
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 |
|---|---|---|
| 0.1.0-alpha3 | 38 | 7/2/2026 |
| 0.1.0-alpha2 | 41 | 6/30/2026 |
| 0.1.0-alpha1 | 35 | 6/30/2026 |