Get started
Install AuthEndpoints
Add the AuthEndpoints NuGet package to your ASP.NET Core project.
NuGet package
dotnet add package AuthEndpoints
The badge shows the latest published version. Release notes are in the changelog.
Requirements
| Requirement | Notes |
|---|---|
| .NET 10 | Target framework net10.0 |
| ASP.NET Core Identity | User store and sign-in |
| EF Core | Identity stores and JWT refresh-token table (when JWT is enabled) |
Register a DbContext that works as the Identity store, such as IdentityDbContext<TUser> or a class that derives from it.
Package contents
The AuthEndpoints package includes these modules:
- The facade:
AddAuthEndpoints,UseAuthEndpoints, andMapAuthEndpoints. - Identity management, cookie sign-in, and Identity bearer sign-in.
- JWT with an HttpOnly refresh cookie.
- Passkeys (WebAuthn).
- ReAuth step-up.
Optional: External OAuth
GitHub and Google sign-in ship as preview packages. MapAuthEndpoints does not map them. Install the provider package that you use. Each one depends on AuthEndpoints.External.OAuth, which has no GitHub or Google handler of its own.
dotnet add package AuthEndpoints.OAuth.GitHub --prerelease
dotnet add package AuthEndpoints.OAuth.Google --prerelease
These packages have their own version numbers. See External OAuth packages.