NoGrind.Auth.Core
2.2.0
dotnet add package NoGrind.Auth.Core --version 2.2.0
NuGet\Install-Package NoGrind.Auth.Core -Version 2.2.0
<PackageReference Include="NoGrind.Auth.Core" Version="2.2.0" />
<PackageVersion Include="NoGrind.Auth.Core" Version="2.2.0" />
<PackageReference Include="NoGrind.Auth.Core" />
paket add NoGrind.Auth.Core --version 2.2.0
#r "nuget: NoGrind.Auth.Core, 2.2.0"
#:package NoGrind.Auth.Core@2.2.0
#addin nuget:?package=NoGrind.Auth.Core&version=2.2.0
#tool nuget:?package=NoGrind.Auth.Core&version=2.2.0
NoGrind.Auth (v2)
NoGrind.Auth is a production-ready authentication library for ASP.NET Core 8.0+. It provides a complete solution for user management, authentication (JWT/Cookie), and security monitoring with minimal boilerplate.
Features
- Authentication: Built-in support for JWT (with refresh tokens) and Cookie authentication.
- User Management: Registration, password policies, role-based access control (RBAC).
- Data Access: EF Core integration with support for PostgreSQL, SQL Server, and SQLite.
- Monitoring: Optional add-on for audit logging, login tracking, and security alerts.
- Extensibility: Override default validation logic with your own FluentValidation rules.
- Configuration: Strongly-typed configuration via
appsettings.json.
Documentation
Full documentation is available in the docs/ directory:
- Quickstart Guide - Get started in minutes.
- Configuration Reference - Detailed configuration options.
- Database & Migrations - Database setup and migration guides.
- Monitoring - Audit logging and security monitoring.
- Extensibility - Customization and extension guides.
- Changelog - Version history.
Quick Start
1. Install Packages
dotnet add package NoGrind.Auth.AspNetCore
dotnet add package NoGrind.Auth.EfCore
2. Configure appsettings.json
{
"NoGrind": {
"Authentication": {
"Provider": "JWT",
"JWT": {
"Secret": "YOUR_SUPER_SECRET_KEY_MUST_BE_AT_LEAST_32_CHARS",
"Issuer": "MyApi",
"Audience": "MyClient"
}
},
"Database": {
"Provider": "SQLite", // Options: "SQLite", "Postgres", "SqlServer"
"Connection": {
"Sqlite": { "DataSource": "nogrind.db" }
// "Postgres": { "Host": "...", ... }
// "SqlServer": { "Server": "...", ... }
}
}
}
}
3. Register in Program.cs
var builder = WebApplication.CreateBuilder(args);
// Add NoGrind services
builder.Services.AddNoGrind(builder.Configuration);
var app = builder.Build();
// Add middleware
app.UseAuthentication();
app.UseAuthorization();
app.Run();
Example Project
A fully functional example Web API is available in examples/ExampleWebApi.
To run it:
cd examples/ExampleWebApi
dotnet run
Then visit https://localhost:7123/swagger to explore the API.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on NoGrind.Auth.Core:
| Package | Downloads |
|---|---|
|
NoGrind.Auth.EfCore
A comprehensive authentication and user management library for ASP.NET Core. |
|
|
NoGrind.Auth.Monitoring.EfCore
A comprehensive authentication and user management library for ASP.NET Core. |
GitHub repositories
This package is not used by any popular GitHub repositories.