Orleans.Lattice.Explorer.Entra.Web
This page documents Orleans.Lattice.Explorer.Entra.Web 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 README.md, and llms.txt lists every page.Orleans.Lattice.Explorer.Entra.Web adds hosted-web Microsoft Entra ID sign-in
to the Explorer's Blazor Server web head.
What it does
The package wires ASP.NET Core OpenID Connect through Microsoft.Identity.Web and
then exchanges the signed-in browser session for a downstream State API token.
The Explorer still sees an IExplorerAuthMethod for the entra scheme; the web
provider is the implementation behind that scheme.
Use Orleans.Lattice.Explorer.Entra for
interactive non-web hosts. A remote Blazor Server circuit has no ambient
HttpContext, so this package explicitly passes the circuit's ClaimsPrincipal
to Microsoft.Identity.Web when it acquires tokens.
Core properties
- The provider registers a scoped
IExplorerAuthMethodforentraand a scoped token-acquirer seam. Each browser circuit uses its own user and token source. - By default it installs a fallback authorization policy, so unauthenticated HTTP requests are challenged into the OIDC redirect.
- It registers cascading authentication state so the Blazor Server circuit sees the authenticated browser principal.
- Silent renewal failures are translated into
ExplorerWebReauthRequiredException. During renewal, the auth method treats that as a revoked credential and lets the session chrome show the re-authentication interstitial. AutoSignInis on by default. A best-effort circuit handler signs in to the State API automatically when the browser user is already authenticated and the endpoint advertisesentra.SignOutPathpublishes a federated sign-out path so the identity menu posts to the Entra sign-out endpoint instead of only clearing the local State API credential.ReauthChallengePathpublishes the forced-interactive challenge path used by theYour session expiredinterstitial.
Features
| Feature | Public surface | Reference |
|---|---|---|
| Hosted-web OpenID Connect registration | ExplorerEntraWebServiceCollectionExtensions.AddLatticeExplorerEntraWebAuth, ExplorerEntraWebOptions |
API reference |
entra sign-in method over the browser session |
EntraWebExplorerAuthMethod |
API reference |
| Downstream State API token seam | IExplorerWebTokenAcquirer, ExplorerWebToken |
API reference |
| Re-authentication signal | ExplorerWebReauthRequiredException |
Renewal and revocation |
| Forced re-authentication and federated sign-out endpoints | ExplorerEntraWebEndpointRouteBuilderExtensions |
API reference |
| Advertised audience admission | ExplorerEntraWebOptions.AllowedAudiences |
Scope resolution |
| Automatic State API sign-in | ExplorerEntraWebOptions.AutoSignIn |
Auto-sign-in circuit handler |
| In-memory or distributed token cache | ExplorerWebTokenCacheKind, ExplorerEntraWebOptions.TokenCache |
Configuration |
Setup
Register the provider on the web host and map the re-authentication and sign-out endpoints. Tenant id and the Explorer console's own application id are required.
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Orleans.Lattice.Explorer.Entra.Web;
var builder = WebApplication.CreateBuilder();
builder.Services.AddLatticeExplorerEntraWebAuth(options =>
{
options.TenantId = "00000000-0000-0000-0000-000000000000";
options.ClientId = "11111111-1111-1111-1111-111111111111";
options.Scopes.Add("api://00000000-0000-0000-0000-000000000000/lattice-silo/.default");
});
var app = builder.Build();
app.MapLatticeExplorerEntraWebReauth();
app.MapLatticeExplorerEntraWebSignOut();
Reference
- API reference - registration, endpoint extensions, token seam and exception.
- Configuration - every public option and enum member.
- Architecture - how OIDC middleware, the scoped auth method, token acquisition and auto-sign-in fit together.