Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.