Nedo.AspNet.Authentication.Diagnostics
2.0.9
dotnet add package Nedo.AspNet.Authentication.Diagnostics --version 2.0.9
NuGet\Install-Package Nedo.AspNet.Authentication.Diagnostics -Version 2.0.9
<PackageReference Include="Nedo.AspNet.Authentication.Diagnostics" Version="2.0.9" />
<PackageVersion Include="Nedo.AspNet.Authentication.Diagnostics" Version="2.0.9" />
<PackageReference Include="Nedo.AspNet.Authentication.Diagnostics" />
paket add Nedo.AspNet.Authentication.Diagnostics --version 2.0.9
#r "nuget: Nedo.AspNet.Authentication.Diagnostics, 2.0.9"
#:package Nedo.AspNet.Authentication.Diagnostics@2.0.9
#addin nuget:?package=Nedo.AspNet.Authentication.Diagnostics&version=2.0.9
#tool nuget:?package=Nedo.AspNet.Authentication.Diagnostics&version=2.0.9
Nedo.AspNet.Authentication.Diagnostics
Health checks + circuit breaker + IdP-aware diagnostics for the Nedo auth platform. Plug in to surface "is the upstream identity provider healthy?" alongside your own service health.
Install
dotnet add package Nedo.AspNet.Authentication.Diagnostics
Quickstart
using Nedo.AspNet.Authentication.Diagnostics;
builder.Services
.AddHealthChecks()
.AddNedoAuthHealthCheck(); // probes the configured IdP's discovery endpoint
var app = builder.Build();
app.MapHealthChecks("/health");
What's in here
AddNedoAuthHealthCheck()— registers anIHealthCheckthat hits the IdP's well-known endpoint (/.well-known/openid-configuration). ReturnsHealthy/Degraded/Unhealthyand feeds standard ASP.NET Core health-check infrastructure.- Circuit breaker — wraps the IdP discovery + JWKS fetches so transient outages don't cascade into request-thread waits. Opens after configurable failure thresholds; half-opens periodically to test recovery.
- Structured diagnostics —
ILoggercategories prefixedNedo.AspNet.Authentication.*so you can filter to just auth events.
Use cases
- K8s readiness/liveness probes —
/healthreturns 503 when the IdP is unreachable so the pod is taken out of rotation. - Splunk / Grafana dashboards — circuit-breaker state + per-IdP latency is exposed as metrics on the standard
IHealthChecksurface. - Pre-deploy smoke tests — hit
/healthto verify the IdP is correctly configured before the service goes live.
Docs
docs/08-diagnostics.md — full guide including circuit-breaker tuning, custom health-check categories, OpenTelemetry integration.
Note for Local sign-in only
If your app uses only Nedo.AspNet.Authentication.Local (no upstream IdP), the IdP health check will report Unhealthy because there's no Authority configured to probe. Either skip AddNedoAuthHealthCheck() or supply an issuer URL to probe (e.g. your own JWKS endpoint when one ships).
License
MIT — see LICENSE.
| 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
- Nedo.AspNet.Authentication (>= 2.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.