21 lines
441 B
Plaintext
21 lines
441 B
Plaintext
@using Microsoft.AspNetCore.Authentication
|
|
|
|
<h2>HttpContext.User.Claims (Scheme: @User.Identity.AuthenticationType)</h2>
|
|
|
|
<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 Context.AuthenticateAsync()).Properties.Items)
|
|
{
|
|
<dt>@prop.Key</dt>
|
|
<dd>@prop.Value</dd>
|
|
}
|
|
</dl> |