ASP.NET Identity Framework UserSecret没有UserId列(ASP.NET Identity Framework UserSecret no UserId Colum

编程入门 行业动态 更新时间:2024-10-28 09:24:49
ASP.NET Identity Framework UserSecret没有UserId列(ASP.NET Identity Framework UserSecret no UserId Column)

我正在开发Mvc 5和新的Asp.net身份的多租户应用程序。 挑战在于两个用户可以拥有相同的用户名,而不是同一个租户。 我在大多数情况下已经弄明白了,但由于某种原因,Identity框架生成的所有表都有UserId列,但UserSecret实体的表除外。 是否有一个原因? 我想确保在用一个具有UserId列的实现替换它之前我没有遗漏一些东西。

I'm developing a multitenant application on Mvc 5 and the new Asp.net Identity. The challenge is that two users can have the same username, just not on the same tenant. I have this figured out for the most part, but for some reason all of the tables generated by the Identity framework have a UserId column, except the UserSecret entity's table. Is there a reason for this? I want to make sure I'm not missing something before I replace it with an implementation that has a UserId column.

最满意答案

默认实现是针对单租户应用程序设计的,它通过可扩展性(插入您自己的商店等)完成多租户应用程序支持。对于RTM,也不再有单独的UserSecret存储,因为已经滚动到用户自己(PasswordHash)。

The default implementation was designed for single tenant apps, it left multitenant app support to be done via the extensibility (plug in your own stores, etc) For RTM, there also is no longer a separate UserSecret store, as that has been rolled into the User itself (PasswordHash).

更多推荐

本文发布于:2023-07-24 20:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1251053.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Identity   NET   ASP   Framework   Column

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!