MasLazu.AspNet.Authentication.Core.Abstraction
1.0.0-preview.10
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
<PackageReference Include="MasLazu.AspNet.Authentication.Core.Abstraction" Version="1.0.0-preview.10" />
<PackageVersion Include="MasLazu.AspNet.Authentication.Core.Abstraction" Version="1.0.0-preview.10" />
<PackageReference Include="MasLazu.AspNet.Authentication.Core.Abstraction" />
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"
#:package MasLazu.AspNet.Authentication.Core.Abstraction@1.0.0-preview.10
#addin nuget:?package=MasLazu.AspNet.Authentication.Core.Abstraction&version=1.0.0-preview.10&prerelease
#tool nuget:?package=MasLazu.AspNet.Authentication.Core.Abstraction&version=1.0.0-preview.10&prerelease
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 methodsIUserService: Manages user CRUD operations and email verificationIGenderService: CRUD operations for gender dataILanguageService: CRUD operations for language dataILoginMethodService: CRUD operations for login methods with additional functionalityITimezoneService: CRUD operations for timezone dataIUserLoginMethodService: CRUD operations for user login method associations
Key Models
UserDto: Complete user information including profile detailsLoginResponse: Authentication tokens and expiration timesGenderDto,LanguageDto,TimezoneDto: Reference data DTOsLoginMethodDto: Login method informationUserLoginMethodDto: 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 | Versions 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. |
-
net9.0
- MasLazu.AspNet.Framework.Application (>= 1.0.0-preview.15)
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.