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" />
                    
Directory.Packages.props
<PackageReference Include="NoGrind.Auth.Monitoring.EfCore" />
                    
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 NoGrind.Auth.Monitoring.EfCore --version 2.2.0
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=NoGrind.Auth.Monitoring.EfCore&version=2.2.0
                    
Install as a Cake Tool

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:

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 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.

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
2.2.0 143 1/16/2026
2.1.0 183 12/14/2025
2.0.0 184 12/13/2025