Acontplus.Services
1.0.12
See the version list below for details.
dotnet add package Acontplus.Services --version 1.0.12
NuGet\Install-Package Acontplus.Services -Version 1.0.12
<PackageReference Include="Acontplus.Services" Version="1.0.12" />
<PackageVersion Include="Acontplus.Services" Version="1.0.12" />
<PackageReference Include="Acontplus.Services" />
paket add Acontplus.Services --version 1.0.12
#r "nuget: Acontplus.Services, 1.0.12"
#:package Acontplus.Services@1.0.12
#addin nuget:?package=Acontplus.Services&version=1.0.12
#tool nuget:?package=Acontplus.Services&version=1.0.12
Acontplus.Services
A modern .NET 9+ library for API services, authentication, claims, middleware, and configuration. Includes JWT, user context, and exception handling for robust enterprise APIs.
🚀 Features
- Platform-aware Configuration Loading - Dynamic app and shared config loading
- Claims-based User Context Extensions - Easy access to user info and claims
- Identity & JWT Authentication - Flexible and strict JWT setup
- User Context Service - Abstracted access to user claims
- Global Exception Handling Middleware - Robust error logging and API error responses
- Mobile Request Detection Middleware - Detects mobile clients via headers
📦 Installation
NuGet Package Manager
Install-Package Acontplus.Services
.NET CLI
dotnet add package Acontplus.Services
PackageReference
<ItemGroup>
<PackageReference Include="Acontplus.Services" Version="1.0.12" />
</ItemGroup>
🎯 Quick Start
1. Add JWT Authentication
using Microsoft.Extensions.DependencyInjection;
using Acontplus.Services.Extensions;
public void ConfigureServices(IServiceCollection services)
{
services.AddIdentityService(Configuration); // or AddIdentityServiceStrict
}
public void Configure(IApplicationBuilder app)
{
app.UseAuthentication();
app.UseAuthorization();
}
2. Use ClaimsPrincipal Extensions
using System.Security.Claims;
using Acontplus.Services.Extensions;
var username = user.GetUsername();
var email = user.GetEmail();
var userId = user.GetUserId();
3. Global Exception Middleware
app.UseMiddleware<ApiExceptionMiddleware>();
🔧 Advanced Usage
AppConfiguration
using Acontplus.Services.Configuration;
var config = AppConfiguration.Load();
User Context Service
using Acontplus.Services.Extensions;
services.AddHttpContextAccessor();
services.AddScoped<IUserContext, UserContext>();
📚 API Documentation
AppConfiguration
- Platform/environment config loaderClaimsPrincipalExtensions
- User/claim helpersApiExceptionMiddleware
- Centralized error handlingUserContext
- User info abstractionRequestContextOptions
- Request context config
🤝 Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Development Setup
git clone https://github.com/Acontplus-S-A-S/acontplus-dotnet-libs.git
cd acontplus-dotnet-libs
dotnet restore
dotnet build
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
- 📧 Email: proyectos@acontplus.com
- 🐛 Issues: GitHub Issues
- 📖 Documentation: Wiki
👨💻 Author
Ivan Paz - @iferpaz7
🏢 Company
Acontplus S.A.S. - Enterprise software solutions
Built with ❤️ for the .NET community
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
- Acontplus.Core (>= 1.2.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 9.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.7)
- Microsoft.IdentityModel.Tokens (>= 8.12.1)
- System.IdentityModel.Tokens.Jwt (>= 8.12.1)
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 |
---|---|---|
1.5.6 | 151 | 8/24/2025 |
1.5.5 | 121 | 8/21/2025 |
1.5.4 | 120 | 8/19/2025 |
1.5.3 | 130 | 8/13/2025 |
1.5.2 | 128 | 8/13/2025 |
1.5.1 | 124 | 8/11/2025 |
1.5.0 | 122 | 8/11/2025 |
1.4.4 | 124 | 8/8/2025 |
1.4.3 | 127 | 8/8/2025 |
1.4.2 | 201 | 8/7/2025 |
1.4.1 | 200 | 8/7/2025 |
1.4.0 | 199 | 8/7/2025 |
1.3.2 | 212 | 8/5/2025 |
1.3.1 | 497 | 7/23/2025 |
1.3.0 | 51 | 7/18/2025 |
1.2.0 | 140 | 7/14/2025 |
1.1.4 | 138 | 7/14/2025 |
1.1.3 | 85 | 7/11/2025 |
1.1.2 | 88 | 7/11/2025 |
1.1.1 | 138 | 7/10/2025 |
1.1.0 | 140 | 7/10/2025 |
1.0.12 | 130 | 7/10/2025 |
1.0.11 | 139 | 7/9/2025 |
1.0.10 | 138 | 7/9/2025 |
1.0.9 | 137 | 7/6/2025 |
1.0.8 | 142 | 7/6/2025 |
1.0.7 | 138 | 7/6/2025 |
1.0.6 | 87 | 7/4/2025 |
1.0.5 | 144 | 7/2/2025 |
1.0.4 | 140 | 7/2/2025 |
1.0.3 | 141 | 7/2/2025 |
1.0.2 | 140 | 7/1/2025 |
Updated for .NET 9+ with modern C# features, improved middleware, and enhanced documentation.