mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-10-24 09:49:00 +08:00
转移.net core 3.1,为.NET 5做准备
This commit is contained in:
32
OpenAuth.Identity/Views/Diagnostics/Index.cshtml
Normal file
32
OpenAuth.Identity/Views/Diagnostics/Index.cshtml
Normal file
@@ -0,0 +1,32 @@
|
||||
@model OpenAuth.IdentityServer.Quickstart.Diagnostics.DiagnosticsViewModel
|
||||
|
||||
<h1>Authentication cookie</h1>
|
||||
|
||||
<h3>Claims</h3>
|
||||
<dl>
|
||||
@foreach (var claim in Model.AuthenticateResult.Principal.Claims)
|
||||
{
|
||||
<dt>@claim.Type</dt>
|
||||
<dd>@claim.Value</dd>
|
||||
}
|
||||
</dl>
|
||||
|
||||
<h3>Properties</h3>
|
||||
<dl>
|
||||
@foreach (var prop in Model.AuthenticateResult.Properties.Items)
|
||||
{
|
||||
<dt>@prop.Key</dt>
|
||||
<dd>@prop.Value</dd>
|
||||
}
|
||||
</dl>
|
||||
|
||||
@if (Model.Clients.Any())
|
||||
{
|
||||
<h3>Clients</h3>
|
||||
<ul>
|
||||
@foreach (var client in Model.Clients)
|
||||
{
|
||||
<li>@client</li>
|
||||
}
|
||||
</ul>
|
||||
}
|
||||
Reference in New Issue
Block a user