#5 #4 处理枚举和 servers参数

This commit is contained in:
luoyunchong
2020-08-25 02:48:52 +08:00
parent 1d63f2c585
commit 8ea53827f5
28 changed files with 587 additions and 13 deletions

View File

@@ -0,0 +1,25 @@
@model OAuth2Integration.AuthServer.Controllers.ConsentViewModel
<style>
</style>
<h1>Consent</h1>
<p>
@Model.ClientName is requesting your permission to ...
</p>
<form asp-controller="Consent" asp-action="Consent">
<input type="hidden" asp-for="ReturnUrl" />
<fieldset>
<ul>
@foreach (var scope in Model.ScopesRequested)
{
<li>
<label>
<input name="ScopesConsented" type="checkbox" value="@scope.Name" checked />@scope.DisplayName
</label>
</li>
}
</ul>
</fieldset>
<button type="submit">Grant Access</button>
</form>