Zymergi.Identity.Auth0
11.2.0-alpha
See the version list below for details.
dotnet add package Zymergi.Identity.Auth0 --version 11.2.0-alpha
NuGet\Install-Package Zymergi.Identity.Auth0 -Version 11.2.0-alpha
<PackageReference Include="Zymergi.Identity.Auth0" Version="11.2.0-alpha" />
<PackageVersion Include="Zymergi.Identity.Auth0" Version="11.2.0-alpha" />
<PackageReference Include="Zymergi.Identity.Auth0" />
paket add Zymergi.Identity.Auth0 --version 11.2.0-alpha
#r "nuget: Zymergi.Identity.Auth0, 11.2.0-alpha"
#:package Zymergi.Identity.Auth0@11.2.0-alpha
#addin nuget:?package=Zymergi.Identity.Auth0&version=11.2.0-alpha&prerelease
#tool nuget:?package=Zymergi.Identity.Auth0&version=11.2.0-alpha&prerelease
Zymergi.Identity.Auth0
Auth0 Management API v2 client implementing IAuthManagementClient from Zymergi.Core. Use it to create and remove users and assign roles — not for login/logout.
Targets .NET 10. Depends on Zymergi.Core and Zymergi.Social.
Install
dotnet add package Zymergi.Identity.Auth0
Configuration
{
"Auth0": {
"Domain": "your-tenant.auth0.com",
"ClientId": "management-api-client-id",
"Secret": "management-api-client-secret",
"Authority": "https://your-tenant.auth0.com",
"DatabaseConnection": "Username-Password-Authentication"
}
}
Audience is optional and defaults to Domain. Authority is optional. When it is empty, the issuer is https://{Domain}/. DatabaseConnection is optional. When it is empty, user create uses Username-Password-Authentication.
AddAuth0Settings binds the Auth0 section and validates it when the host starts. Domain, ClientId, and Secret are required. An Authority value must be an absolute http or https URI.
services.AddAuth0Settings(configuration);
Pass an HttpClient that you own. Construction does not call Auth0. The first operation loads a client-credentials token and later calls refresh it before expiry. A lookup by email tries again only after HTTP 429. Register the wrapper as a singleton and keep the same HttpClient for its life.
Usage
using Zymergi.Identity.Auth0;
var settings = configuration.GetSection("Auth0").Get<Auth0Settings>()!;
var http = new HttpClient();
var auth = new Auth0ManagementClient(settings, http);
var user = await auth.AddUserAsync("ada@example.com", temporaryPassword);
var matches = await auth.GetUsersByEmailAsync("ada@example.com");
var roles = await auth.GetRolesAsync();
Auth0TokenValidator checks the signature, the issuer, the audience, and the lifetime. The settings constructor loads signing keys from the tenant OpenID configuration on the first call. Pass TokenValidationParameters when the host already has the keys. ClaimsList in Zymergi.AspNetCore is obsolete. It reads a JWT and does not validate the signature.
var principal = await new Auth0TokenValidator(settings).ValidateAsync(idToken);
| 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
- Auth0.ManagementApi (>= 10.4.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.12)
- Microsoft.Extensions.Hosting (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.12)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 8.23.0)
- Newtonsoft.Json (>= 13.0.4)
- System.IdentityModel.Tokens.Jwt (>= 8.23.0)
- Zymergi.Core (>= 11.2.0-alpha)
- Zymergi.Social (>= 11.2.0-alpha)
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 |
|---|---|---|
| 11.4.0-alpha | 70 | 11/16/2026 |
| 11.3.0-alpha | 75 | 11/12/2026 |
| 11.2.0-alpha | 66 | 11/2/2026 |
| 11.1.1-alpha | 95 | 10/4/2026 |
| 11.1.0-alpha | 111 | 10/1/2026 |
| 11.0.6-alpha | 97 | 7/10/2026 |
| 11.0.5-alpha | 135 | 7/9/2026 |
| 11.0.4-alpha | 81 | 7/6/2026 |
| 11.0.3-alpha | 85 | 7/6/2026 |
| 11.0.2-alpha | 123 | 6/30/2026 |
| 11.0.1-alpha | 121 | 6/30/2026 |
| 11.0.0-alpha | 102 | 6/29/2026 |