KamiSama.Modules.Identity.Abstractions 10.0.14

dotnet add package KamiSama.Modules.Identity.Abstractions --version 10.0.14
                    
NuGet\Install-Package KamiSama.Modules.Identity.Abstractions -Version 10.0.14
                    
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="KamiSama.Modules.Identity.Abstractions" Version="10.0.14" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KamiSama.Modules.Identity.Abstractions" Version="10.0.14" />
                    
Directory.Packages.props
<PackageReference Include="KamiSama.Modules.Identity.Abstractions" />
                    
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 KamiSama.Modules.Identity.Abstractions --version 10.0.14
                    
#r "nuget: KamiSama.Modules.Identity.Abstractions, 10.0.14"
                    
#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 KamiSama.Modules.Identity.Abstractions@10.0.14
                    
#: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=KamiSama.Modules.Identity.Abstractions&version=10.0.14
                    
Install as a Cake Addin
#tool nuget:?package=KamiSama.Modules.Identity.Abstractions&version=10.0.14
                    
Install as a Cake Tool

KamiSama.Modules.Identity.Abstractions

Back to package index

Version: 10.0.0

Description

Provider-neutral Identity feature contracts, requests, responses, search models, role constants, and failure metadata for login, token refresh, logout, user, role, password, session, and two-factor workflows. Reference this package from callers or alternative implementations that should not depend on ASP.NET Core Identity, Entity Framework Core, or a database provider.

How to use

dotnet add package KamiSama.Modules.Identity.Abstractions --version 10.0.0

Inject only the feature interfaces needed by an application service. The Core package discovers its implementations during module registration, while another provider can implement the same contracts without depending on ASP.NET Core Identity:

using KamiSama.Modules.Identity.Services.AccountSecurity;
using KamiSama.Modules.Identity.Services.Authentication;
using KamiSama.Modules.Identity.Services.Roles;
using KamiSama.Modules.Identity.Services.Users;

public sealed class AccountFacade(
    ILogin login,
    IRefreshToken refreshToken,
    ILogout logout,
    IFindCurrentUser currentUser,
    IListRoles listRoles,
    IListActiveSessions sessions,
    IChangePassword changePassword)
{
    public Task<LoginResponse> LoginAsync(LoginRequest request, CancellationToken token) => login.LoginAsync(request, token);
    public Task<TokenPairDto> RefreshAsync(RefreshTokenRequest request, CancellationToken token) => refreshToken.RefreshAsync(request, token);
    public Task LogoutAsync(CancellationToken token) => logout.LogoutAsync(token);
    public Task<UserDto> CurrentAsync(CancellationToken token) => currentUser.GetCurrentUserAsync(token);
    public Task<IReadOnlyList<ActiveSessionDto>> SessionsAsync(Guid userId, CancellationToken token) => sessions.ListAsync(userId, token);
    public Task ChangePasswordAsync(ChangePasswordRequest request, CancellationToken token) => changePassword.ChangeAsync(request, token);
}

These are operation shapes, not an authorization boundary. ILogin accepts one user name or email value and returns both the authenticated user and a new session's tokens; IRefreshToken replaces tokens for the session represented by the supplied pair. ILogout and ILogoutAll rely on an implementation-defined current authenticated context. Implementations must authorize target user and role identifiers, avoid account-enumeration differences, define cancellation and transaction behavior, and protect token and password workflows. DTO arrays are mutable, and the contracts do not promise that search or update fields are honored by every implementation.

Namespaces

Types

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 (1)

Showing the top 1 NuGet packages that depend on KamiSama.Modules.Identity.Abstractions:

Package Downloads
KamiSama.Modules.Identity.Core

ASP.NET Core Identity implementation for KamiSama login, token refresh, logout, user, role, password, two-factor, and session feature contracts, with revocable JWT sessions, EF Core persistence, mappings, and modular startup registration. Install it with exactly one Identity database provider and review the documented security and runtime limitations before exposing its features.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.14 50 11/8/2026
10.0.13.1 134 10/22/2026
10.0.13 122 10/22/2026
10.0.11.9 180 8/24/2026
10.0.11.8 153 8/22/2026
10.0.11.7 182 8/21/2026
10.0.11.6 170 8/19/2026
10.0.11.5 152 8/18/2026
10.0.11.4 159 8/18/2026
10.0.11.3 144 8/18/2026
10.0.11.2 148 8/18/2026
10.0.11.1 161 8/15/2026
10.0.11 163 8/11/2026
10.0.10.2 163 8/4/2026