Aspnet Core Identity 有关的数据库表、配置及扩展

1、表 AspNetUserTokens  用于外部验证的 token 存储,被方法  SignInManager.UpdateExternalAuthenticationTokensAsync 填写。

     内部验证的 token 默认存储在内存(memory)中  , 如果想存储在数据库中, 你必须创建自己的表及相关存储的逻辑。

      参考《https://stackoverflow.com/questions/51200884/populating-aspnetuserlogins-and-aspnetusertokens

2、表 AspNetUserLogins 保留 第3方/外部 login 的信息,

for example users who login into your site via Google, Facebook, Twitter etc. The AspNetUsers table is the primary table to store user information, this is linked to AspNetUserLogins via UserId -> AspNetUsers.Id

猜你喜欢

转载自www.cnblogs.com/hopesun/p/12529875.html
今日推荐