Orleans.Lattice.Membership.Entra.Graph API reference
This page documents Orleans.Lattice.Membership.Entra.Graph 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.Graph. The package guide explains the overage resolver, app-token management, the secret-less credential path and the identity directory; this page is the complete declaration reference. The Graph clients, the token provider and acquirer, and the group resolver are internal and are described in Architecture.
Registration
| Method | Signature | Purpose |
|---|---|---|
AddEntraGraphGroupResolver |
ISiloBuilder AddEntraGraphGroupResolver(this ISiloBuilder builder, Action<LatticeEntraGraphOptions> configure) |
Registers one shared app-only Microsoft Graph client, the Graph-backed IEntraGroupResolver the Entra authenticator consults on overage, and EntraGraphIdentityDirectory as the active ILatticeIdentityDirectory (last registration wins). Throws ArgumentNullException for a null argument, InvalidOperationException unless AddEntraCredentialAuthenticator(...) was called first, and OptionsValidationException immediately, before registering anything, when the options are invalid. |
LatticeEntraGraphServiceCollectionExtensions declares the method. Every option is documented in Configuration.
Types
| Type | Role |
|---|---|
LatticeEntraGraphOptions |
The Graph connection: either a Credential (secret-less) or the TenantId, ClientId and ClientSecret triple, plus Scopes, SecurityEnabledOnly, TokenRefreshSkew and DirectorySubjectIdSource. ResolveAuthority() builds the MSAL authority from AuthorityHost and TenantId. |
EntraGraphIdentityDirectory |
The Graph-backed ILatticeIdentityDirectory, with ProviderId "entra" (its EntraProviderId constant). It has no public constructor; the registration builds it. Search and resolve degrade to an empty page and null when Graph denies the query. |
EntraDirectorySubjectIdSource |
Which Entra identifier the directory records as a principal id: ObjectId (default) or UserPrincipalName. Match it to the subject claim the authenticator resolves so validation and authentication agree. |
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.Graph.EntraDirectorySubjectIdSource
Source (line 10).
public enum EntraDirectorySubjectIdSource
ObjectIdUserPrincipalName
Orleans.Lattice.Membership.Entra.Graph.EntraGraphIdentityDirectory
Source (line 21).
public sealed class EntraGraphIdentityDirectory : ILatticeIdentityDirectory
public const string EntraProviderIdpublic string ProviderId { get; }public string DescribeEntry(DirectoryPrincipalKind? kind)public Task<DirectorySearchPage> SearchAsync(DirectorySearchQuery query, CancellationToken cancellationToken = default)public Task<DirectoryPrincipal?> ResolveAsync(string principalId, CancellationToken cancellationToken = default)
Orleans.Lattice.Membership.Entra.Graph.LatticeEntraGraphOptions
Source (line 20).
public sealed class LatticeEntraGraphOptions
public const string DefaultAuthorityHostpublic const string DefaultScopepublic string TenantId { get; set; }public string ClientId { get; set; }public string ClientSecret { get; set; }public TokenCredential? Credential { get; set; }public string AuthorityHost { get; set; }public IList<string> Scopes { get; }public bool SecurityEnabledOnly { get; set; }public TimeSpan TokenRefreshSkew { get; set; }public EntraDirectorySubjectIdSource DirectorySubjectIdSource { get; set; }public string ResolveAuthority()
Orleans.Lattice.Membership.Entra.Graph.LatticeEntraGraphServiceCollectionExtensions
Source (line 14).
public static class LatticeEntraGraphServiceCollectionExtensions
public static ISiloBuilder AddEntraGraphGroupResolver(this ISiloBuilder builder, Action<LatticeEntraGraphOptions> configure)
Related
- Package guide
- Configuration
- Architecture
Orleans.Lattice.Membership.Entrapublic API - the authenticator and theIEntraGroupResolverseam.- Identity-directory providers - the
ILatticeIdentityDirectoryseam.