---
title: "Orleans.Lattice.Membership.Oidc API reference"
url: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.membership.oidc/api.html"
source: "https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/docs/lattice.membership.oidc/api.md"
agent_spec: "https://nsta1.github.io/Orleans.Lattice/docs/agents/governance/identity-propagation.json"
package: "Orleans.Lattice.Membership.Oidc"
version: "10.5.0"
documents: "Orleans.Lattice 10.5.0 (release line 10.5)"
built: "2026-12-05"
all-pages: "https://nsta1.github.io/Orleans.Lattice/llms.txt"
bundle: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.membership.oidc/llms-full.txt"
---
# Orleans.Lattice.Membership.Oidc API reference

Part of the [Membership.Oidc documentation](README.md).

Every public type and member of `Orleans.Lattice.Membership.Oidc`. The [package guide](README.md) explains exact-issuer selection, algorithm pinning, the claim conventions and the security notes; this page is the complete declaration reference. The discovery-document source is internal and is described in [Architecture](architecture.md).

## Registration

| Method | Signature | Purpose |
|---|---|---|
| `AddLatticeOidc` | `ISiloBuilder AddLatticeOidc(this ISiloBuilder builder, Action<LatticeOidcAuthenticatorOptions> configure)` | Registers one more `OidcCredentialAuthenticator` 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`. Call once per issuer. |

`LatticeOidcServiceCollectionExtensions` declares the method. Every option, the `OidcClaimNames` constants and the validation rules are documented in [Configuration](configuration.md).

## Types

| Type | Role |
|---|---|
| `OidcCredentialAuthenticator` | A subclass of the membership package's [`JwtCredentialAuthenticator`](../lattice.membership/api.md#extending-jwtcredentialauthenticator). It overrides `CanHandle` (scheme hint, or an exact ordinal match of the token's `iss` against `Issuer`), and the protected `ResolveValidationParametersAsync` (discovery-driven signing keys, exact issuer validation, algorithm pinning) and `MapPrincipal` (configured subject and group claim types). Its public constructor discovers metadata from the live provider and throws `ArgumentException` when `Issuer` is blank, `Audiences` or `SubjectClaimTypes` is empty, or no metadata address can be derived; the class is unsealed so a host can specialise it further. |
| `LatticeOidcAuthenticatorOptions` | Per-issuer configuration; `ResolveMetadataAddress()` returns `MetadataAddress` when set, otherwise `Authority` with `/.well-known/openid-configuration` appended, or an empty string when neither is set. |
| `OidcClaimNames` | The standard claim names used as defaults: `sub`, `groups`, `roles` and `role`. |

## 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.Oidc.LatticeOidcAuthenticatorOptions`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.membership.oidc/LatticeOidcAuthenticatorOptions.cs) (line 11).

`public sealed class LatticeOidcAuthenticatorOptions`

- `public string Authority { get; set; }`
- `public string? MetadataAddress { get; set; }`
- `public string Issuer { get; set; }`
- `public IList<string> Audiences { get; }`
- `public IList<string> Algorithms { get; }`
- `public IList<string> SubjectClaimTypes { get; }`
- `public IList<string> GroupClaimTypes { get; }`
- `public string? SchemeHint { 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.Oidc.LatticeOidcServiceCollectionExtensions`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.membership.oidc/LatticeOidcServiceCollectionExtensions.cs) (line 11).

`public static class LatticeOidcServiceCollectionExtensions`

- `public static ISiloBuilder AddLatticeOidc(this ISiloBuilder builder, Action<LatticeOidcAuthenticatorOptions> configure)`

### `Orleans.Lattice.Membership.Oidc.OidcClaimNames`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.membership.oidc/OidcClaimNames.cs) (line 15).

`public static class OidcClaimNames`

- `public const string Subject`
- `public const string Groups`
- `public const string Roles`
- `public const string Role`

### `Orleans.Lattice.Membership.Oidc.OidcCredentialAuthenticator`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.membership.oidc/OidcCredentialAuthenticator.cs) (line 25).

`public class OidcCredentialAuthenticator : JwtCredentialAuthenticator`

- `public OidcCredentialAuthenticator(LatticeOidcAuthenticatorOptions options)`
- `public override bool CanHandle(in LatticeCredential credential)`
- `protected override ValueTask<TokenValidationParameters> ResolveValidationParametersAsync(LatticeCredential credential, CancellationToken cancellationToken)`
- `protected override LatticePrincipal? MapPrincipal(JsonWebToken token, ClaimsIdentity identity)`

## Related

- [Package guide](README.md)
- [Configuration](configuration.md)
- [Architecture](architecture.md)
- [`Orleans.Lattice.Membership` public API](../lattice.membership/api.md) - the authenticator seam and JWT base.
- [`Orleans.Lattice.Membership.Entra` public API](../lattice.membership.entra/api.md) - the Microsoft Entra ID sibling.
