Skip to content

Instantly share code, notes, and snippets.

@thivi
Created April 22, 2023 11:21
Show Gist options
  • Save thivi/9f984558f2709c425653b4f12493c4d2 to your computer and use it in GitHub Desktop.
Save thivi/9f984558f2709c425653b4f12493c4d2 to your computer and use it in GitHub Desktop.
@{
ViewData["Title"] = "Secure";
}
<h1>@ViewData["Title"]</h1>
<p>Use this page to show sensitive information that should only be shown to an authenticated user.</p>
<div>
<h4>Profile Pic</h4>
<img src=@Model.ProfileURL class="profile-pic"/>
<h4>Claims</h4>
<ul>
@foreach (var claim in Model.Claims)
{
<li><b>@claim.Type</b> <span>@claim.Value</span></li>
}
</ul>
<h4>Access Token</h4>
<p class="field">@Model.AccessToken</p>
<h4>ID Token</h4>
<p class="field">@Model.IdToken</p>
<h4>Refresh Token</h4>
<p class="field">@Model.RefreshToken</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment