Skip to content

AspNetUserIdentity Layout Renderer

Rolf Kristensen edited this page Jul 4, 2022 · 8 revisions

ASP.NET HttpContext User.Identity.Name

Platforms Supported: All

Similar to AUTH_USER / REMOTE_USER / LOGON_USER in Server Variables.

Configuration Syntax

${aspnet-user-identity}

ASP.NET Core Details

Adding Identity in ASP.NET Core 2.2 using IServiceCollection in ConfigureServices:

services.AddIdentity<IdentityUser, IdentityRole>()
    .AddRoles<IdentityRole>()
    .AddDefaultTokenProviders()
    .AddDefaultUI();

See also Introduction to Identity on ASP.NET Core (Configuring IdentityOptions)

User Identity Claims

For additional details about the user identity, then one can also use ${aspnet-user-claim}

Clone this wiki locally