27 lines
490 B
Plaintext
27 lines
490 B
Plaintext
@page
|
|
@using Microsoft.AspNetCore.Authentication;
|
|
@model MyClaimsModel
|
|
@{
|
|
ViewData["Title"] = "My Claims";
|
|
}
|
|
<h2>@ViewData["Title"]</h2>
|
|
<h3>@Model.Message</h3>
|
|
|
|
<dl>
|
|
@foreach (var claim in User.Claims)
|
|
{
|
|
<dt>@claim.Type</dt>
|
|
<dd>@claim.Value</dd>
|
|
}
|
|
</dl>
|
|
|
|
<h2>AuthenticationProperties</h2>
|
|
|
|
<dl>
|
|
@foreach (var prop in (await HttpContext.AuthenticateAsync()).Properties.Items)
|
|
{
|
|
<dt>@prop.Key</dt>
|
|
<dd>@prop.Value</dd>
|
|
}
|
|
</dl>
|