Web API client connected

This commit is contained in:
Paul Schneider 2024-11-12 08:32:15 +00:00
commit 716bfb2e05
23 changed files with 225 additions and 339 deletions

View file

@ -1,3 +1,4 @@
@using Microsoft.AspNetCore.Authentication
@{
ViewData["Title"] = "Home Page";
}
@ -35,3 +36,25 @@
<a class="btn btn-lg btn-success" href="/signin">Sign in</a>
}
</div>
<h2>Claims</h2>
<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>