diff --git a/CSharp/AuthorizationServer/Quickstart/TestUsers.cs b/CSharp/AuthorizationServer/Quickstart/TestUsers.cs index b1a2750..e22179c 100644 --- a/CSharp/AuthorizationServer/Quickstart/TestUsers.cs +++ b/CSharp/AuthorizationServer/Quickstart/TestUsers.cs @@ -30,6 +30,20 @@ namespace IdentityServerHost.Quickstart.UI new Claim(JwtClaimTypes.Email, "muhammad-azeez@outlook.com"), new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean), }, + }, + new TestUser + { + SubjectId = "4990102438634", + Username = "4990102438634", + Password = "123", + Claims = + { + new Claim(JwtClaimTypes.Name, "Vazhin Tayeb"), + new Claim(JwtClaimTypes.GivenName, "Vazhin"), + new Claim(JwtClaimTypes.FamilyName, "Tayeb"), + new Claim(JwtClaimTypes.Email, "vazhintayeb@gmail.com"), + new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean), + }, } }; } diff --git a/CSharp/AuthorizationServer/Views/Account/LoggedOut.cshtml b/CSharp/AuthorizationServer/Views/Account/LoggedOut.cshtml index 3cc190b..a87f4ce 100644 --- a/CSharp/AuthorizationServer/Views/Account/LoggedOut.cshtml +++ b/CSharp/AuthorizationServer/Views/Account/LoggedOut.cshtml @@ -6,10 +6,12 @@ }
This service is a centeralized - authentication tool. It's used - for - all of the kurdistan's digital - services. -
- - @if (User.Identity.IsAuthenticated == false) + @if (User.Identity.IsAuthenticated) { +Your UPN is: @User.FindFirst("sub").Value
+ } + else + { +This service is a centeralized + authentication tool. It's used + for + all of the kurdistan's digital + services. +
+