Zymergi.Identity.Auth0 11.3.0-alpha

This is a prerelease version of Zymergi.Identity.Auth0.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Zymergi.Identity.Auth0 --version 11.3.0-alpha
                    
NuGet\Install-Package Zymergi.Identity.Auth0 -Version 11.3.0-alpha
                    
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="Zymergi.Identity.Auth0" Version="11.3.0-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zymergi.Identity.Auth0" Version="11.3.0-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Zymergi.Identity.Auth0" />
                    
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 Zymergi.Identity.Auth0 --version 11.3.0-alpha
                    
#r "nuget: Zymergi.Identity.Auth0, 11.3.0-alpha"
                    
#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 Zymergi.Identity.Auth0@11.3.0-alpha
                    
#: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=Zymergi.Identity.Auth0&version=11.3.0-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Zymergi.Identity.Auth0&version=11.3.0-alpha&prerelease
                    
Install as a Cake Tool

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);

Source: bitbucket.org/zymergy/zymergi.saas

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