Created
June 15, 2020 23:18
-
-
Save cmatskas/87cf3d59ca54201cf5705c2f06d07d6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page | |
@model EasyAuthDemo.Pages.ClaimsModel | |
<div class="row"> | |
<div class="col-md-12"> | |
<table class="table table-responsive table-striped"> | |
@if (HttpContext.User.Identity.IsAuthenticated) | |
{ | |
foreach (var c in Model.UserClaims) | |
{ | |
<tr> | |
<td>@c.Type</td> | |
<td>@(c.Value.Length > 100 ? c.Value.Substring(0, 100) : c.Value)</td> | |
</tr> | |
} | |
} | |
else | |
{ | |
<tr> | |
<td>Current Status</td> | |
<td><strong>Not Authenticated</strong></td> | |
</tr> | |
} | |
</table> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment