PulseTrade.Comm.Login.SqlServer 0.1.0-alpha3

This is a prerelease version of PulseTrade.Comm.Login.SqlServer.
dotnet add package PulseTrade.Comm.Login.SqlServer --version 0.1.0-alpha3
                    
NuGet\Install-Package PulseTrade.Comm.Login.SqlServer -Version 0.1.0-alpha3
                    
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="PulseTrade.Comm.Login.SqlServer" Version="0.1.0-alpha3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PulseTrade.Comm.Login.SqlServer" Version="0.1.0-alpha3" />
                    
Directory.Packages.props
<PackageReference Include="PulseTrade.Comm.Login.SqlServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PulseTrade.Comm.Login.SqlServer --version 0.1.0-alpha3
                    
#r "nuget: PulseTrade.Comm.Login.SqlServer, 0.1.0-alpha3"
                    
#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.
#:package PulseTrade.Comm.Login.SqlServer@0.1.0-alpha3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PulseTrade.Comm.Login.SqlServer&version=0.1.0-alpha3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PulseTrade.Comm.Login.SqlServer&version=0.1.0-alpha3&prerelease
                    
Install as a Cake Tool

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 connectionString uses the database in the supplied connection string.
  • LoginSqlServerProviderConfig.fromEnvironment envName is legacy/local support only. Production hosts must use encrypted-file secret resolution before calling create.
  • EnsureDatabase=false by default; set withEnsureDatabase true only when the host wants this package to create the database from Initial Catalog.
  • Schema="dbo" by default; override with withSchema.

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 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. 
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
0.1.0-alpha3 38 7/2/2026
0.1.0-alpha2 41 6/30/2026
0.1.0-alpha1 35 6/30/2026