Orleans.Lattice.Api.Auth
This page documents Orleans.Lattice.Api.Abstractions 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 orleans-lattice-api-auth.md, and llms.txt lists every page.
Part of Public API.
Implemented by Orleans.Lattice.Api.Auth and exposed remotely by Orleans.Lattice.Api.Auth.Grpc. 14 public types.
| Type | Kind | Summary |
|---|---|---|
ILatticeAuthAdmin |
interface | Transport-agnostic configuration and control facade over a cluster's authorization system: membership administration, policy administration, and policy introspection behind a single surface. |
AccessAuthenticationMode |
enum | The authentication posture a silo can authoritatively determine for itself from its own registrations, surfaced by GetAccessModelAsync so a UI can render the right create-form guidance and warn when access is effectively open. |
AccessModelDescriptor |
sealed record | A best-effort description of a cluster's access model, returned by GetAccessModelAsync, reporting what the silo can authoritatively determine from its own registrations: the active authentication mode, whether authorization rules are actually enforced, and whether an identity directory is available for validating candidate ids (together with the provider id and operator-facing explanation a create form should render). |
ApiAuthTypeAliases |
static class | Centralised Orleans serialization alias constants for every Orleans.Lattice.Api.Auth type that participates in the wire format. |
AuthEffectivePermissions |
sealed record | The result of EffectivePermissionsAsync: the authored authorization rules that name a subject directly or through its groups, resolved for dashboards and UX. |
AuthExplanation |
sealed record | The result of ExplainAsync: the authorization verdict for a subject / operation / scope, plus the supporting detail that explains it. |
AuthGroup |
sealed record | A group record as surfaced by the admin facade: a stable GroupId and an optional human-readable DisplayName. |
AuthGroupPage |
sealed record | One page of the group catalog. |
AuthPageRequest |
sealed record | Paging request for the admin facade's paged list endpoints (the group catalog, and the rule catalog whole or per tree; group-member lists are returned whole and take no paging request). |
AuthPolicyPosture |
sealed record | The opt-in authorization posture of a cluster: the two tier flags that are off by default and, while off, change nothing an operator can see without inspecting configuration. |
AuthRulePage |
sealed record | One page of the authorization rule catalog. |
DirectoryPrincipalDescriptor |
sealed record | A principal (user or group) as it exists in the configured external identity source, surfaced by SearchDirectoryAsync and ResolveDirectoryPrincipalAsync. |
DirectorySearchRequest |
sealed record | A typeahead / browse request against the configured identity directory, forwarded by SearchDirectoryAsync to validate candidate principal ids before an operator grants them access. |
DirectorySearchResult |
sealed record | One page of identity-directory search results returned by SearchDirectoryAsync: the matched principals, an optional continuation token for a 'load more' follow-up, and an Available flag distinguishing 'no principals matched' from 'no identity directory is configured'. |
ILatticeAuthAdmin
Source (line 34).
public interface ILatticeAuthAdmin
Task UpsertGroupAsync(AuthGroup group, CancellationToken cancellationToken = default)Task<AuthGroup?> GetGroupAsync(string groupId, CancellationToken cancellationToken = default)Task RemoveGroupAsync(string groupId, CancellationToken cancellationToken = default)Task<AuthGroupPage> ListGroupsAsync(AuthPageRequest request, CancellationToken cancellationToken = default)Task AddMemberAsync(string groupId, string memberId, MembershipMemberKind memberKind = MembershipMemberKind.User, CancellationToken cancellationToken = default)Task RemoveMemberAsync(string groupId, string memberId, CancellationToken cancellationToken = default)Task<IReadOnlyList<string>> ListGroupMembersAsync(string groupId, CancellationToken cancellationToken = default)Task<IReadOnlyList<string>> ListSubjectGroupsAsync(string memberId, CancellationToken cancellationToken = default)Task PutRuleAsync(LatticeAuthorizationRule rule, CancellationToken cancellationToken = default)Task<LatticeAuthorizationRule?> GetRuleAsync(string treeId, string ruleId, CancellationToken cancellationToken = default)Task<bool> RemoveRuleAsync(string treeId, string ruleId, CancellationToken cancellationToken = default)Task<AuthRulePage> ListRulesAsync(AuthPageRequest request, CancellationToken cancellationToken = default)Task<AuthRulePage> ListRulesForTreeAsync(string treeId, AuthPageRequest request, CancellationToken cancellationToken = default)Task<AuthExplanation> ExplainAsync(string subjectId, LatticeOperation operation, LatticeScope scope, LatticeSubjectSelectorKind subjectKind = LatticeSubjectSelectorKind.User, CancellationToken cancellationToken = default)Task<AuthEffectivePermissions> EffectivePermissionsAsync(string subjectId, LatticeSubjectSelectorKind subjectKind = LatticeSubjectSelectorKind.User, CancellationToken cancellationToken = default)Task<DirectorySearchResult> SearchDirectoryAsync(DirectorySearchRequest request, CancellationToken cancellationToken = default)Task<DirectoryPrincipalDescriptor?> ResolveDirectoryPrincipalAsync(string principalId, CancellationToken cancellationToken = default)Task<AccessModelDescriptor> GetAccessModelAsync(CancellationToken cancellationToken = default)
AccessAuthenticationMode
Source (line 18).
public enum AccessAuthenticationMode
UnknownAnonymousClaimsBasic
AccessModelDescriptor
Source (line 21).
public sealed record AccessModelDescriptor
public AccessAuthenticationMode AuthenticationMode { get; init; }public bool RulesEnforced { get; init; }public bool DirectoryAvailable { get; init; }public required string DirectoryProviderId { get; init; }public required string DirectoryExplanation { get; init; }public bool LocalMembershipEffective { get; init; }public bool AllTreesGrantsEnabled { get; init; }public bool AccessAdministrationDelegationEnabled { get; init; }public bool DelegatedTenantAccessAdministrationEnabled { get; init; }public bool DirectoryValidationRequired { get; init; }
ApiAuthTypeAliases
Source (line 16).
public static class ApiAuthTypeAliases
public const string AuthGrouppublic const string AuthPageRequestpublic const string AuthGroupPagepublic const string AuthRulePagepublic const string AuthExplanationpublic const string AuthEffectivePermissionspublic const string AuthPolicyPosturepublic const string DirectorySearchRequestpublic const string DirectorySearchResultpublic const string DirectoryPrincipalDescriptorpublic const string AccessModelDescriptorpublic const string AuthGroupRefpublic const string AuthMemberRefpublic const string AuthRuleRefpublic const string AuthMemberEdgepublic const string AuthPutRulepublic const string AuthTreeRulesPagepublic const string AuthExplainQuerypublic const string AuthSubjectRefpublic const string AuthAckpublic const string AuthGroupResultpublic const string AuthRuleResultpublic const string AuthStringListpublic const string AuthRuleRemovedpublic const string AuthPrincipalRefpublic const string AuthDirectoryPrincipalResultpublic const string AuthAccessModelQuery
AuthEffectivePermissions
Source (line 25).
public sealed record AuthEffectivePermissions
public required string SubjectId { get; init; }public IReadOnlyList<string> GroupIds { get; init; }public IReadOnlyList<LatticeAuthorizationRule> Rules { get; init; }public AuthPolicyPosture Posture { get; init; }public IReadOnlyList<TenantRuleLayer> RuleLayers { get; init; }
AuthExplanation
Source (line 17).
public sealed record AuthExplanation
public required string SubjectId { get; init; }public IReadOnlyList<string> GroupIds { get; init; }public LatticeOperation Operation { get; init; }public required LatticeScope Scope { get; init; }public bool Allowed { get; init; }public bool Filtered { get; init; }public string? Reason { get; init; }public LatticeEffect DefaultEffect { get; init; }public IReadOnlyList<LatticeAuthorizationRule> MatchedRules { get; init; }public AuthPolicyPosture Posture { get; init; }public TenantRuleLayer? DecidingLayer { get; init; }public string? DecidingRuleId { get; init; }
AuthGroup
Source (line 13).
public sealed record AuthGroup
public required string GroupId { get; init; }public string? DisplayName { get; init; }
AuthGroupPage
Source (line 11).
public sealed record AuthGroupPage
public IReadOnlyList<AuthGroup> Entries { get; init; }public string? NextPageToken { get; init; }
AuthPageRequest
Source (line 15).
public sealed record AuthPageRequest
public const int DefaultPageSizepublic const int MaxPageSizepublic int PageSize { get; init; }public string? PageToken { get; init; }public bool ActiveTenantOnly { get; init; }public bool IncludeTenantGroups { get; init; }public int EffectivePageSize
AuthPolicyPosture
Source (line 21).
public sealed record AuthPolicyPosture
public bool AllTreesGrantsEnabled { get; init; }public bool AccessAdministrationDelegationEnabled { get; init; }
AuthRulePage
Source (line 16).
public sealed record AuthRulePage
public IReadOnlyList<LatticeAuthorizationRule> Entries { get; init; }public string? NextPageToken { get; init; }public string? Tenant { get; init; }public IReadOnlyList<string?> TenantRuleTenants { get; init; }
DirectoryPrincipalDescriptor
Source (line 17).
public sealed record DirectoryPrincipalDescriptor
public required string Id { get; init; }public required string DisplayName { get; init; }public DirectoryPrincipalKind Kind { get; init; }public IReadOnlyDictionary<string, string>? Claims { get; init; }
DirectorySearchRequest
Source (line 15).
public sealed record DirectorySearchRequest
public string Term { get; init; }public DirectoryPrincipalKind? Kind { get; init; }public int PageSize { get; init; }public string? ContinuationToken { get; init; }
DirectorySearchResult
Source (line 13).
public sealed record DirectorySearchResult
public IReadOnlyList<DirectoryPrincipalDescriptor> Principals { get; init; }public string? ContinuationToken { get; init; }public bool Available { get; init; }public static DirectorySearchResult Unavailable { get; }