You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
537 B
27 lines
537 B
@using Microsoft.AspNetCore.Authentication
|
|
|
|
<h2>Claims</h2>
|
|
|
|
<div class="panel">
|
|
<a class="btn btn-primary" href="~/home/callapi">Call API</a>
|
|
<a class="btn btn-primary" href="~/home/refreshtoken">Refresh token</a>
|
|
</div>
|
|
|
|
|
|
<dl>
|
|
@foreach (var claim in User.Claims)
|
|
{
|
|
<dt>@claim.Type</dt>
|
|
<dd>@claim.Value</dd>
|
|
}
|
|
</dl>
|
|
|
|
<h2>Properties</h2>
|
|
|
|
<dl>
|
|
@foreach (var prop in (await Context.AuthenticateAsync()).Properties.Items)
|
|
{
|
|
<dt>@prop.Key</dt>
|
|
<dd>@prop.Value</dd>
|
|
}
|
|
</dl>
|