@using System.Diagnostics @using IdentityServer4.Extensions @{ var version = FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First(); }
@if (User.Identity.IsAuthenticated) {

Welcome @User.GetDisplayName()!

Your UPN is: @User.FindFirst("sub").Value

Logout
} else {

Identity Server

This service is a centeralized authentication tool. It's used for all of the kurdistan's digital services.

Login
}