AuthEndpoints 3.0.0-alpha.11
See the version list below for details.
dotnet add package AuthEndpoints --version 3.0.0-alpha.11
NuGet\Install-Package AuthEndpoints -Version 3.0.0-alpha.11
<PackageReference Include="AuthEndpoints" Version="3.0.0-alpha.11" />
<PackageVersion Include="AuthEndpoints" Version="3.0.0-alpha.11" />
<PackageReference Include="AuthEndpoints" />
paket add AuthEndpoints --version 3.0.0-alpha.11
#r "nuget: AuthEndpoints, 3.0.0-alpha.11"
#:package AuthEndpoints@3.0.0-alpha.11
#addin nuget:?package=AuthEndpoints&version=3.0.0-alpha.11&prerelease
#tool nuget:?package=AuthEndpoints&version=3.0.0-alpha.11&prerelease
AuthEndpoints
A simple auth library for ASP.NET Core. AuthEndpoints provides minimal API endpoints for registration, email verification, password reset, login/logout, 2FA, JWT, and passkeys (WebAuthn).
Endpoints
- Cookie / Bearer Identity (
MapCookieAuthEndpoints/MapBearerAuthEndpoints)- register, confirm email, login, logout
- forgot / reset password, account info
- 2FA manage
- reauth (
confirmIdentity,confirmIdentity/passkeyOptions,manage/authMethods)
- Simple JWT (
MapJwtAuthEndpoints)- create (login), refresh, verify
- when 2FA is enabled,
createrequirestwoFactorCodeortwoFactorRecoveryCode
- Passkeys (
MapPasskeyEndpoints)- creation / request options
- passwordless register + login
- list / add / rename / delete credentials
Installing via NuGet
dotnet add package AuthEndpoints --version 3.0.0-alpha.10
Quick start
// Program.cs
builder.Services
.AddIdentityApiEndpoints<AppUser>(o =>
{
o.Stores.SchemaVersion = IdentitySchemaVersions.Version3; // required for passkeys
})
.AddEntityFrameworkStores<AppDbContext>()
.AddDefaultTokenProviders();
builder.Services.Configure<IdentityPasskeyOptions>(options =>
{
options.ServerDomain = "example.com"; // your relying-party domain
});
builder.Services.AddJwtEndpoints<AppUser, AppDbContext>(options =>
{
// Required: set a stable secret (do not leave unset).
options.SigningOptions.SymmetricKey = builder.Configuration["Jwt:SymmetricKey"];
});
builder.Services.AddAntiforgery();
builder.Services.AddCookieAuthEndpoints(); // ReAuth + login rate limits
builder.Services.AddPasskeyEndpoints(); // passkey rate limits (+ ReAuth if not already added)
var app = builder.Build();
app.UseAuthentication();
app.UseAuthorization();
app.UseRateLimiter();
app.UseAntiforgery();
app.MapGroup("/identity").MapCookieAuthEndpoints<AppUser>();
app.MapGroup("/auth").MapJwtAuthEndpoints<AppUser>();
app.MapGroup("/account").MapPasskeyEndpoints<AppUser>();
app.Run();
Passkey passwordless flow
POST /account/passkeys/register/optionswith{ "email": "..." }→ WebAuthn creation options- Browser
navigator.credentials.create(...) POST /account/passkeys/registerwith{ "email": "...", "credentialJson": "..." }→ account + passkey
Sign-in after register/login matches Identity password login:
- Default (no query flags): Identity bearer tokens (
AccessTokenResponse) ?useCookies=true: persistent application cookie?useSessionCookies=true: session application cookie
CSRF (antiforgery) is required on these endpoints for anonymous and cookie-authenticated clients. Bearer-only authenticated calls (Identity bearer or JWT Bearer) may omit the CSRF token on endpoints that use RequireAntiforgery. This does not issue Simple JWT — call /auth/create separately if you use MapJwtAuthEndpoints.
For an existing signed-in user (with reauth): POST /account/passkeys/creationOptions then POST /account/passkeys.
Reauthentication (step-up)
Mapped automatically with cookie/bearer Identity groups:
GET /identity/manage/authMethods— which proofs the user can use (password,authenticator,recoveryCodes,passkeys)- For passkey step-up:
POST /identity/confirmIdentity/passkeyOptions→ WebAuthnget→POST /identity/confirmIdentitywith{ "credentialJson": "..." } - Or confirm with exactly one of:
password,twoFactorCode,twoFactorRecoveryCode,credentialJson
Success issues a short-lived AuthEndpoints.ReAuth cookie (5 minutes) for endpoints that use RequireReauth().
Documentations
Documentation is available at https://madeyoga.github.io/AuthEndpoints/.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.2)
- Microsoft.AspNetCore.Identity.EntityFrameworkCore (>= 10.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AuthEndpoints:
| Package | Downloads |
|---|---|
|
AuthEndpoints.External.OAuth
Minimal API endpoints for external OAuth authentication (GitHub, Google) with ASP.NET Core Identity |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 3.1.0 | 6 | 9/20/2026 | |
| 3.0.8 | 48 | 9/19/2026 | |
| 3.0.7 | 127 | 9/8/2026 | |
| 3.0.6 | 101 | 9/7/2026 | |
| 3.0.5 | 115 | 9/6/2026 | |
| 3.0.4 | 105 | 9/4/2026 | |
| 3.0.3 | 109 | 9/2/2026 | |
| 3.0.2 | 112 | 8/31/2026 | |
| 3.0.1 | 122 | 8/28/2026 | |
| 3.0.0 | 136 | 8/27/2026 | |
| 3.0.0-rc.4 | 100 | 8/2/2026 | |
| 3.0.0-rc.3 | 94 | 7/30/2026 | |
| 3.0.0-rc.2 | 133 | 7/25/2026 | |
| 3.0.0-rc.1 | 96 | 7/25/2026 | |
| 3.0.0-alpha.11 | 99 | 7/24/2026 | |
| 3.0.0-alpha.8 | 334 | 12/20/2025 | |
| 3.0.0-alpha.7 | 250 | 12/19/2025 | |
| 3.0.0-alpha.6 | 393 | 12/19/2025 | |
| 3.0.0-alpha.5 | 324 | 11/23/2025 | |
| 3.0.0-alpha.4 | 328 | 11/10/2025 |