Orleans.Lattice.Membership.Entra API reference
This page documents Orleans.Lattice.Membership.Entra 10.5.0, in the documentation for Orleans.Lattice 10.5.0 (release line 10.5), built 2026-12-05. It is also published as markdown, with every table and list, at api.md, and llms.txt lists every page.Every public type and member of Orleans.Lattice.Membership.Entra. The package guide explains tenant-aware validation, the Entra claim conventions and groups-overage handling, and the setup guide provisions an app registration end to end; this page is the complete declaration reference. Types not listed here are internal and are described by behaviour in Architecture.
Registration
| Method | Signature | Purpose |
|---|---|---|
AddEntraCredentialAuthenticator |
ISiloBuilder AddEntraCredentialAuthenticator(this ISiloBuilder builder, Action<LatticeEntraAuthenticatorOptions> configure) |
Registers one more EntraCredentialAuthenticator as an ILatticeCredentialAuthenticator. Throws ArgumentNullException for a null argument and InvalidOperationException unless AddLatticeMembership(...) was called first. The options are built and validated when the authenticator is first constructed, and an invalid configuration throws OptionsValidationException. |
LatticeEntraServiceCollectionExtensions declares the method. Every option and the EntraClaimNames constants are documented in Configuration.
Types by role
| Type | Role |
|---|---|
EntraCredentialAuthenticator |
A subclass of the membership package's JwtCredentialAuthenticator. It overrides CanHandle (scheme hint, or tenant allow-list plus templated issuer), and the protected ResolveValidationParametersAsync (OIDC discovery from the tenant authority, templated issuer validation, algorithm allow-list), MapPrincipal (oid then sub subject; groups and roles as asserted groups) and EnrichPrincipalAsync (groups overage). Its public constructor discovers metadata from the live authority and throws ArgumentException when Audiences is empty or no metadata address can be derived from MetadataAddress or Authority; the class is unsealed so a host can specialise it further. |
LatticeEntraAuthenticatorOptions |
Per-authenticator configuration; ResolveMetadataAddress() returns MetadataAddress when set, otherwise Authority with /.well-known/openid-configuration appended, or an empty string when neither is set. |
EntraClaimNames |
The Entra v2.0 claim names the authenticator reads. |
EntraGroupResolutionMode |
TokenOnly (default; never consults a resolver) or ResolveOnOverage. |
IEntraGroupResolver |
The overage seam: ResolveGroupsAsync(EntraGroupResolutionContext, CancellationToken) returns the caller's groups, which are unioned with the token-asserted ones. Orleans.Lattice.Membership.Entra.Graph supplies the Microsoft Graph implementation. |
EntraGroupResolutionContext |
What a resolver receives: SubjectId, TenantId and any TokenAssertedGroups. |
TokenOnlyEntraGroupResolver |
A registrable resolver that returns the token-asserted groups, the same result as the dependency-free fallback. |
Public declaration reference
The following inventory includes directly declared public members and overloads, enum values, record positional members, and the protected extension points of unsealed public classes. Inherited framework members and compiler-generated record equality helpers are not additional package operations. Each source link identifies the declaration that defines its signature.
Orleans.Lattice.Membership.Entra.EntraClaimNames
Source (line 8).
public static class EntraClaimNames
public const string ObjectIdpublic const string TenantIdpublic const string Groupspublic const string Rolespublic const string Scopepublic const string AuthorizedPartypublic const string Subjectpublic const string ClaimNamespublic const string ClaimSources
Orleans.Lattice.Membership.Entra.EntraCredentialAuthenticator
Source (line 20).
public class EntraCredentialAuthenticator : JwtCredentialAuthenticator
public EntraCredentialAuthenticator(LatticeEntraAuthenticatorOptions options, IEntraGroupResolver? groupResolver = null)public override bool CanHandle(in LatticeCredential credential)protected override ValueTask<LatticePrincipal?> EnrichPrincipalAsync(LatticePrincipal principal, LatticeCredential credential, CancellationToken cancellationToken)protected override ValueTask<TokenValidationParameters> ResolveValidationParametersAsync(LatticeCredential credential, CancellationToken cancellationToken)protected override LatticePrincipal? MapPrincipal(JsonWebToken token, ClaimsIdentity identity)
Orleans.Lattice.Membership.Entra.EntraGroupResolutionContext
Source (line 9).
public sealed class EntraGroupResolutionContext
public EntraGroupResolutionContext(string subjectId, string? tenantId = null, IReadOnlyCollection<string>? tokenAssertedGroups = null)public string SubjectId { get; }public string? TenantId { get; }public IReadOnlyCollection<string>? TokenAssertedGroups { get; }
Orleans.Lattice.Membership.Entra.EntraGroupResolutionMode
Source (line 8).
public enum EntraGroupResolutionMode
TokenOnlyResolveOnOverage
Orleans.Lattice.Membership.Entra.IEntraGroupResolver
Source (line 12).
public interface IEntraGroupResolver
ValueTask<IReadOnlyCollection<string>> ResolveGroupsAsync(EntraGroupResolutionContext context, CancellationToken cancellationToken = default)
Orleans.Lattice.Membership.Entra.LatticeEntraAuthenticatorOptions
Source (line 12).
public sealed class LatticeEntraAuthenticatorOptions
public const string DefaultIssuerTemplatepublic const string DefaultAuthorityHostpublic string Authority { get; set; }public string? MetadataAddress { get; set; }public string IssuerTemplate { get; set; }public IList<string> TenantIds { get; }public IList<string> Audiences { get; }public const string DefaultAlgorithmpublic IList<string> Algorithms { get; }public string? SchemeHint { get; set; }public EntraGroupResolutionMode GroupResolutionMode { get; set; }public bool ValidateLifetime { get; set; }public TimeSpan ClockSkew { get; set; }public TimeSpan AutomaticRefreshInterval { get; set; }public TimeSpan RefreshInterval { get; set; }public string ResolveMetadataAddress()
Orleans.Lattice.Membership.Entra.LatticeEntraServiceCollectionExtensions
Source (line 11).
public static class LatticeEntraServiceCollectionExtensions
public static ISiloBuilder AddEntraCredentialAuthenticator(this ISiloBuilder builder, Action<LatticeEntraAuthenticatorOptions> configure)
Orleans.Lattice.Membership.Entra.TokenOnlyEntraGroupResolver
Source (line 13).
public sealed class TokenOnlyEntraGroupResolver : IEntraGroupResolver
public ValueTask<IReadOnlyCollection<string>> ResolveGroupsAsync(EntraGroupResolutionContext context, CancellationToken cancellationToken = default)
Related
- Package guide
- Configuration
- Architecture
Orleans.Lattice.Membershippublic API - the authenticator seam and JWT base.Orleans.Lattice.Membership.Entra.Graphpublic API - the Graph-backed resolver and identity directory.