NoGrind.Auth.Monitoring.EfCore
2.2.0
dotnet add package NoGrind.Auth.Monitoring.EfCore --version 2.2.0
NuGet\Install-Package NoGrind.Auth.Monitoring.EfCore -Version 2.2.0
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="NoGrind.Auth.Monitoring.EfCore" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NoGrind.Auth.Monitoring.EfCore" Version="2.2.0" />
<PackageReference Include="NoGrind.Auth.Monitoring.EfCore" />
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 NoGrind.Auth.Monitoring.EfCore --version 2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NoGrind.Auth.Monitoring.EfCore, 2.2.0"
#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 NoGrind.Auth.Monitoring.EfCore@2.2.0
#: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=NoGrind.Auth.Monitoring.EfCore&version=2.2.0
#tool nuget:?package=NoGrind.Auth.Monitoring.EfCore&version=2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.12)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.12)
- Microsoft.EntityFrameworkCore.Sqlite (>= 8.0.12)
- NoGrind.Auth.Core (>= 2.2.0)
- NoGrind.Auth.EfCore (>= 2.2.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.