MasLazu.AspNet.Authentication.Core.Abstraction 1.0.0-preview.10

This is a prerelease version of MasLazu.AspNet.Authentication.Core.Abstraction.
dotnet add package MasLazu.AspNet.Authentication.Core.Abstraction --version 1.0.0-preview.10
                    
NuGet\Install-Package MasLazu.AspNet.Authentication.Core.Abstraction -Version 1.0.0-preview.10
                    
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="MasLazu.AspNet.Authentication.Core.Abstraction" Version="1.0.0-preview.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MasLazu.AspNet.Authentication.Core.Abstraction" Version="1.0.0-preview.10" />
                    
Directory.Packages.props
<PackageReference Include="MasLazu.AspNet.Authentication.Core.Abstraction" />
                    
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 MasLazu.AspNet.Authentication.Core.Abstraction --version 1.0.0-preview.10
                    
#r "nuget: MasLazu.AspNet.Authentication.Core.Abstraction, 1.0.0-preview.10"
                    
#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 MasLazu.AspNet.Authentication.Core.Abstraction@1.0.0-preview.10
                    
#: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=MasLazu.AspNet.Authentication.Core.Abstraction&version=1.0.0-preview.10&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MasLazu.AspNet.Authentication.Core.Abstraction&version=1.0.0-preview.10&prerelease
                    
Install as a Cake Tool

MasLazu.AspNet.Authentication.Core.Abstraction

This project contains the abstractions and interfaces for the MasLazu ASP.NET Authentication Core library.

Overview

The MasLazu.AspNet.Authentication.Core.Abstraction project provides:

  • Service Interfaces: Contracts for authentication, user management, and related services
  • Data Transfer Objects (DTOs): Models for users, login methods, genders, languages, timezones, etc.
  • Request/Response Models: Structures for creating, updating, and retrieving data
  • Authentication Models: Login responses with access and refresh tokens

Key Interfaces

  • IAuthService: Handles user authentication and login methods
  • IUserService: Manages user CRUD operations and email verification
  • IGenderService: CRUD operations for gender data
  • ILanguageService: CRUD operations for language data
  • ILoginMethodService: CRUD operations for login methods with additional functionality
  • ITimezoneService: CRUD operations for timezone data
  • IUserLoginMethodService: CRUD operations for user login method associations

Key Models

  • UserDto: Complete user information including profile details
  • LoginResponse: Authentication tokens and expiration times
  • GenderDto, LanguageDto, TimezoneDto: Reference data DTOs
  • LoginMethodDto: Login method information
  • UserLoginMethodDto: Association between users and login methods
  • Create/Update request models for all entities

Project Configuration

  • Target Framework: .NET 9.0
  • Implicit Usings: Enabled
  • Nullable Reference Types: Enabled

Dependencies

  • Package References:
    • MasLazu.AspNet.Framework.Application - Provides base DTOs and CRUD service interfaces

This project serves as the foundation for implementing authentication-related functionality across the solution.

Usage

Implement the provided interfaces in your concrete classes to integrate with the authentication system. Use the DTOs for data transfer between layers.

🛠️ Development Guidelines

Naming Conventions

  • Interfaces: Prefix with I (e.g., IAuthService)
  • DTOs: Suffix with Dto (e.g., UserDto)
  • Requests: Suffix with Request (e.g., CreateUserRequest)
  • Responses: Suffix with Response (e.g., LoginResponse)

Code Structure

src/MasLazu.AspNet.Authentication.Core.Abstraction/
├── Interfaces/         # Service contracts
├── Models/             # DTOs and request/response models
├── MasLazu.AspNet.Authentication.Core.Abstraction.csproj
└── README.md

Best Practices

  • Keep interfaces focused and minimal
  • Use records for immutable DTOs
  • Include XML documentation for public APIs
  • Follow async/await patterns consistently
  • Use meaningful property names and types

🤝 Contributing

  • Interface Changes: Consider backward compatibility
  • New Models: Follow existing naming and structure patterns
  • Documentation: Update XML comments for new members
  • Testing: Add tests for new abstractions
  • Versioning: Consider semantic versioning for breaking changes

📄 License

Part of the MasLazu ASP.NET framework ecosystem.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on MasLazu.AspNet.Authentication.Core.Abstraction:

Package Downloads
MasLazu.AspNet.Authentication.Password

Application layer for MasLazu ASP.NET Password Authentication. Contains service implementations, validation, and business logic.

MasLazu.AspNet.Authentication.Core.Endpoint

API endpoints for MasLazu ASP.NET Authentication Core. Contains REST API implementations using FastEndpoints.

MasLazu.AspNet.Authentication.Core.Base

Base implementations for MasLazu ASP.NET Authentication Core. Contains service implementations, JWT utilities, and application services.

MasLazu.AspNet.Authentication.Core.Consumer

Event consumers for MasLazu ASP.NET Authentication Core. Contains MassTransit consumers for handling authentication-related events.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-preview.10 149 10/8/2025
1.0.0-preview.9 144 10/2/2025
1.0.0-preview.8 156 10/1/2025
1.0.0-preview.7 148 10/1/2025
1.0.0-preview.5 145 9/29/2025
1.0.0-preview.3 287 9/18/2025

See RELEASES.md for release notes.