Skip to content

Class IdentityAspNetCoreWebApplicationBuilderExtensions

Namespace: Cephalon.Identity.AspNetCore.Hosting
Assembly: Cephalon.Identity.AspNetCore.dll

Registers the ASP.NET Core identity adapter on a .

public static class IdentityAspNetCoreWebApplicationBuilderExtensions

objectIdentityAspNetCoreWebApplicationBuilderExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

AddCephalonIdentityAspNetCore(WebApplicationBuilder, Action<IdentityAspNetCoreOptions>?)

Section titled “ AddCephalonIdentityAspNetCore(WebApplicationBuilder, Action<IdentityAspNetCoreOptions>?)”

Adds the Cephalon ASP.NET Core identity adapter to the target application builder.

public static WebApplicationBuilder AddCephalonIdentityAspNetCore(this WebApplicationBuilder builder, Action<IdentityAspNetCoreOptions>? configure = null)

builder WebApplicationBuilder

The ASP.NET Core application builder to extend.

configure Action<IdentityAspNetCoreOptions>?

An optional callback that can extend or override the configuration-driven ASP.NET Core identity adapter options.

WebApplicationBuilder

The same builder instance for fluent composition.

This keeps ASP.NET Core-specific principal, claim, and route-bound authorization mapping in the host layer while still feeding the host-agnostic Cephalon authorization contracts. When Cephalon.Audit is also active and no custom has been registered, the same adapter also bridges the current authenticated principal into the ambient audit actor contract.