titres
This commit is contained in:
parent
1a50b8a205
commit
c1b7170143
55 changed files with 235 additions and 45 deletions
|
|
@ -1,4 +1,7 @@
|
|||
@model Client
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
<h2>@Localizer["Create"]</h2>
|
||||
|
||||
|
|
@ -77,4 +80,3 @@
|
|||
<div>
|
||||
<a asp-action="Index">@Localizer["Back to List"]</a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
@model Client
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
<h2>@Localizer["Delete"]</h2>
|
||||
|
||||
|
|
@ -63,4 +66,4 @@
|
|||
<a asp-action="Index">@Localizer["Back to List"]</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -2,7 +2,12 @@
|
|||
@using Microsoft.AspNetCore.Html
|
||||
@using System.Text
|
||||
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@functions {
|
||||
|
||||
// Lifetimes in IdentityServer are stored as seconds (int). Render them
|
||||
// in a human-friendly way: "5 min", "2 h", "30 d", "—" for 0/negative.
|
||||
// Zero typically means "use the global default" — show it as such so
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
@model Client
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
<h2>@Localizer["Edit"]</h2>
|
||||
|
||||
|
|
@ -303,4 +306,4 @@
|
|||
|
||||
<div>
|
||||
<a asp-action="Index">@Localizer["Back to List"]</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
@model IEnumerable<IdentityServer8.EntityFramework.Entities.ClientClaim>
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit Client Claims";
|
||||
var clientId = Model.FirstOrDefault()?.ClientId ?? 0;
|
||||
|
|
@ -61,4 +65,4 @@
|
|||
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@clientId">Back to client</a>
|
||||
</p>
|
||||
</p>
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
@model IEnumerable<IdentityServer8.EntityFramework.Entities.ClientCorsOrigin>
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit Allowed CORS Origins";
|
||||
ViewData["addAction"] = "AddCorsOrigin";
|
||||
|
|
@ -23,4 +27,4 @@
|
|||
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@ViewData["clientId"]">Back to client</a>
|
||||
</p>
|
||||
</p>
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
@model IEnumerable<IdentityServer8.EntityFramework.Entities.ClientGrantType>
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit Allowed Grant Types";
|
||||
ViewData["addAction"] = "AddGrantType";
|
||||
|
|
@ -24,4 +28,4 @@
|
|||
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@ViewData["clientId"]">Back to client</a>
|
||||
</p>
|
||||
</p>
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
@model IEnumerable<IdentityServer8.EntityFramework.Entities.ClientIdPRestriction>
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit Identity Provider Restrictions";
|
||||
ViewData["addAction"] = "AddIdPRestriction";
|
||||
|
|
@ -21,4 +25,4 @@
|
|||
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@ViewData["clientId"]">Back to client</a>
|
||||
</p>
|
||||
</p>
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
@model IEnumerable<IdentityServer8.EntityFramework.Entities.ClientPostLogoutRedirectUri>
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit Post-logout Redirect URIs";
|
||||
ViewData["addAction"] = "AddPostLogoutRedirectUri";
|
||||
|
|
@ -22,4 +26,4 @@
|
|||
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@ViewData["clientId"]">Back to client</a>
|
||||
</p>
|
||||
</p>
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
@model IEnumerable<IdentityServer8.EntityFramework.Entities.ClientProperty>
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit Client Properties";
|
||||
var clientId = Model.FirstOrDefault()?.ClientId ?? 0;
|
||||
|
|
@ -62,4 +66,4 @@
|
|||
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@clientId">Back to client</a>
|
||||
</p>
|
||||
</p>
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
@model IEnumerable<IdentityServer8.EntityFramework.Entities.ClientRedirectUri>
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit Redirect URIs";
|
||||
ViewData["addAction"] = "AddRedirectUri";
|
||||
|
|
@ -22,4 +26,4 @@
|
|||
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@ViewData["clientId"]">Back to client</a>
|
||||
</p>
|
||||
</p>
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
@model IEnumerable<IdentityServer8.EntityFramework.Entities.ClientScope>
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit Allowed Scopes";
|
||||
ViewData["addAction"] = "AddScope";
|
||||
|
|
@ -22,4 +26,4 @@
|
|||
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@ViewData["clientId"]">Back to client</a>
|
||||
</p>
|
||||
</p>
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
@model IEnumerable<IdentityServer8.EntityFramework.Entities.ClientSecret>
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit Client Secrets";
|
||||
var clientId = Model.FirstOrDefault()?.ClientId ?? 0;
|
||||
|
|
@ -80,4 +84,4 @@
|
|||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@clientId">Back to client</a>
|
||||
<a asp-action="RegenerateSecret" asp-route-id="@clientId" class="ml-3">Regenerate a single secret</a>
|
||||
</p>
|
||||
</p>
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
@model Client
|
||||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
<h2>@Localizer["Regenerate client secret"]</h2>
|
||||
|
||||
|
|
@ -36,4 +39,4 @@
|
|||
@Html.AntiForgeryToken()
|
||||
<button type="submit" class="btn btn-danger">@Localizer["Regenerate now"]</button>
|
||||
<a asp-action="Details" asp-route-id="@Model.Id" class="btn btn-default">@Localizer["Cancel"]</a>
|
||||
</form>
|
||||
</form>
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
@{
|
||||
ViewBag.Title = Localizer["Client"];
|
||||
}
|
||||
|
||||
@{
|
||||
var secret = ViewBag.NewClientSecret as string;
|
||||
var expiresAt = ViewBag.NewClientSecretExpiresAt as string;
|
||||
|
|
|
|||
Loading…
Reference in a new issue