yavsc/src/Org/Views/Client/Index.cshtml

82 lines
2.2 KiB
Text
Raw Normal View History

2025-08-24 16:07:53 +01:00
@using IdentityServer8.Models
@model IEnumerable<IdentityServer8.EntityFramework.Entities.Client>
2025-08-19 15:40:16 +01:00
@{
2026-02-22 23:39:56 +00:00
ViewData["Title"] = @Localizer["Index"];
2025-08-19 15:40:16 +01:00
}
2026-02-22 23:39:56 +00:00
<h2>@Localizer["Index"]</h2>
2025-08-19 15:40:16 +01:00
<p>
2026-02-22 23:39:56 +00:00
<a asp-action="Create">@Localizer["Create New"]</a>
2025-08-19 15:40:16 +01:00
</p>
2025-08-24 16:50:52 +01:00
2025-08-19 15:40:16 +01:00
<table class="table">
<tr>
<th>
2025-08-24 16:07:53 +01:00
@Html.DisplayNameFor(model => model.ClientId)
2025-08-19 15:40:16 +01:00
</th>
<th>
2025-08-24 16:07:53 +01:00
@Html.DisplayNameFor(model => model.Enabled)
2025-08-19 15:40:16 +01:00
</th>
<th>
2025-08-24 16:07:53 +01:00
@Html.DisplayNameFor(model => model.ClientName)
2025-08-19 15:40:16 +01:00
</th>
<th>
2025-08-24 16:07:53 +01:00
@Html.DisplayNameFor(model => model.FrontChannelLogoutUri)
2025-08-19 15:40:16 +01:00
</th>
<th>
2025-08-24 16:07:53 +01:00
@Html.DisplayNameFor(model => model.RedirectUris)
2025-08-19 15:40:16 +01:00
</th>
<th>
2025-08-24 16:07:53 +01:00
@Html.DisplayNameFor(model => model.AbsoluteRefreshTokenLifetime)
2025-08-19 15:40:16 +01:00
</th>
<th>
2025-08-24 16:07:53 +01:00
@Html.DisplayNameFor(model => model.AllowedGrantTypes)
</th>
<th>
@Html.DisplayNameFor(model => model.AccessTokenType)
2025-08-19 15:40:16 +01:00
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
2025-08-24 16:07:53 +01:00
@Html.DisplayFor(modelItem => item.ClientId)
</td>
<td>
@Html.DisplayFor(modelItem => item.Enabled)
2025-08-19 15:40:16 +01:00
</td>
<td>
2025-08-24 16:07:53 +01:00
@Html.DisplayFor(modelItem => item.ClientName)
2025-08-19 15:40:16 +01:00
</td>
<td>
2025-08-24 16:07:53 +01:00
@Html.DisplayFor(modelItem => item.FrontChannelLogoutUri)
2025-08-19 15:40:16 +01:00
</td>
<td>
2025-08-24 16:07:53 +01:00
<ul>
@foreach (var uri in item.RedirectUris)
{ <li>@uri.RedirectUri</li> }
</ul>
2025-08-19 15:40:16 +01:00
</td>
<td>
2025-08-24 16:07:53 +01:00
@Html.DisplayFor(modelItem => item.AbsoluteRefreshTokenLifetime)
2025-08-19 15:40:16 +01:00
</td>
<td>
2025-08-24 16:07:53 +01:00
<ul>
@foreach (var t in item.AllowedGrantTypes)
{ <li>@t.GrantType</li> }
</ul>
2025-08-19 15:40:16 +01:00
</td>
<td>
2025-08-24 16:07:53 +01:00
@Enum.GetName(typeof(AccessTokenType), item.AccessTokenType)
2025-08-19 15:40:16 +01:00
</td>
<td>
2025-08-24 16:07:53 +01:00
<a asp-action="Edit" asp-route-id="@item.ClientId">Edit</a> |
<a asp-action="Details" asp-route-id="@item.ClientId">Details</a> |
<a asp-action="Delete" asp-route-id="@item.ClientId">Delete</a>
2025-08-19 15:40:16 +01:00
</td>
</tr>
}
</table>