ASP.NETCOREidentity consent页源代码示例下载链接:https://pan.baidu.com/s/1ZM96-kTsgP6rJynHpQWIqg 密码:ftz7
工具/原料
VS2017
方法/步骤
1
1新增viewmoel新建ConsentViewModelpublic class ConsentViewModel { public string ClientId { get; set; } public string ClientName { get; set; } public string ClientLogoUrl { get; set; } public bool AllowRememberConsent { get; set; } public IEnumerable
3
新增view新增Index.cshtml@model ConsentViewModel
Consent Page
@if (string.IsNullOrWhiteSpace(Model.ClientLogoUrl) {
}
@Model.ClientName 希望使用你的账户
4 @Model.DisplsyName @Model.Description
1新增view新增_ScopeListItem.cshtml@using MvcCookieAuthSample.Models;@model ScopeViewModel
5
新增的文件结构
6
完成
上一篇:汽车美容带你成功开业要点
下一篇:增强“借光”意识