关于如何使用Identity的文献

有几篇文件,深入浅出地讲解了如何一步一步的使用Identity,感觉十分有用,留下链接,备查。

1. Configuring Db Connection and Code-First Migration for Identity Accounts in ASP.NET MVC 5 and Visual Studio 2013

     虽然该文章内容基于MVC 5,但是对ASP.NET Core环境下的身份管理具有一定的参考价值,主要是填充种子数据和扩展IdentityModel两部分。

    主要内容为:

  • Configuring the Database Connection
  • 配置数据库连接
  • Configuring Entity Framework Migrations and Seeding the Database
  • 配置EF迁移,并用种子数据填充数据库
  • Seeding the Database with an Initial User Records
  • 用最初的种子用户记录填充数据库
  • Extending the IdentityModel Class with Additional Properties
  • 用其他的特性扩展IdentityModel类
  • Updating the Database to Reflect Modified Entity Classes
  • 更新数据库以反应实体类的变化
  • Additional Resources and Items of Interest
  • 其他感兴趣的资源和主题
  • Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5
  • 在MVC5中扩充Identity账户并应用基于角色的认证

2. Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5

    同样基于MVC5,不妨作为Core的参考。

    主要内容为:

  • Simplifying AccountController – Remove the Clutter
  • 简化账户控制器--移除杂项
  • Remove Uneeded Views
  • 删除不需要的视图
  • Clean Up Account-Related Views
  • 删除账户相关视图
  • Remove Unneeded Model Classes
  • 删除不需要的模型类
  • Extending the Identity Management Models and View Models
  • 扩展Identity管理模型和视图模型
  • Extending the Account Controller
  • 扩展账户控制器
  • Adding the UserRoles Method to the AccountController 
  • 向账户控制器添加UserRoles方法
  • Basic Views for Role-Based Identity Management
  • 基于角色的身份管理的基本概要
  • Use [Authorize] Attribute to Control Access 
  • 使用[Authorize]属性控制接入
  • Additional Resources and Items of Interest 
  • 其他感兴趣的资源和主题
posted @ 2016-10-25 18:15  jqdy  阅读(445)  评论(0编辑  收藏  举报