我可以使用owin和oauth提供商的asp.net会员资格吗?

时间:2021-01-15 03:15:42

I have started to create ASP.NET membership for learning basis but i found new ASP.NET Identity. Some people suggested that latter is advanced than ASP.NET membership and ASP.NET simple membership.

我已经开始为学习基础创建ASP.NET成员资格,但我发现了新的ASP.NET身份。有人建议后者比ASP.NET成员资格和ASP.NET简单成员资格先进。

I have read the comparison from this source. But still i have some questions because i some things are still unclear to me.

我已经阅读了这个来源的比较。但我仍有一些问题,因为我有些事情仍然不清楚。

  1. Can i use owin and oauth with ASP.NET membership and simple membership?

    我可以将owin和oauth与ASP.NET成员资格和简单会员资格一起使用吗?

  2. how i can authenticate web api with ASP.NET membership and simple membership?

    我如何使用ASP.NET成员资格和简单的成员身份验证web api?

  3. Can i customize tables for profile, user and role in ASP.NET Identity?

    我可以在ASP.NET Identity中自定义配置文件,用户和角色的表吗?

Please suggest. If any one can suggest me a good reference for authorization and authentication of web API and ASP.NET Identity configuration, it would be great.

请建议。如果任何人可以建议我对Web API和ASP.NET身份配置的授权和身份验证有一个很好的参考,那就太棒了。

1 个解决方案

#1


0  

ASP.NET Identity is now a mature technology and it's complex enough to accommodate all your requirements.

ASP.NET Identity现在是一项成熟的技术,它足够复杂,可以满足您的所有需求。

More than so, there is even a better solution, it's called ASP.NET Identity Server and comes with couple things extra:

更重要的是,甚至有一个更好的解决方案,它被称为ASP.NET身份服务器,还有额外的几件事:

  • Can be used with Identity
  • 可以与Identity一起使用
  • Implements SSO (Single Sign-On)
  • 实施SSO(单点登录)
  • Can be used with Entity Framework
  • 可以与Entity Framework一起使用
  • It's a self host product
  • 这是一个自主产品

So to answer you're questions:

所以回答你的问题:

  1. No, you cannot use both Identity and Simple Membership.

    不,您不能同时使用身份和简单会员资格。

  2. Using ASP.NET Identity Server, via a token.

    使用ASP.NET Identity Server,通过令牌。

  3. You can customize the tables to meet you requirements.

    您可以自定义表以满足您的要求。

Here is the official documentation for the Identity Server.

以下是Identity Server的官方文档。

#1


0  

ASP.NET Identity is now a mature technology and it's complex enough to accommodate all your requirements.

ASP.NET Identity现在是一项成熟的技术,它足够复杂,可以满足您的所有需求。

More than so, there is even a better solution, it's called ASP.NET Identity Server and comes with couple things extra:

更重要的是,甚至有一个更好的解决方案,它被称为ASP.NET身份服务器,还有额外的几件事:

  • Can be used with Identity
  • 可以与Identity一起使用
  • Implements SSO (Single Sign-On)
  • 实施SSO(单点登录)
  • Can be used with Entity Framework
  • 可以与Entity Framework一起使用
  • It's a self host product
  • 这是一个自主产品

So to answer you're questions:

所以回答你的问题:

  1. No, you cannot use both Identity and Simple Membership.

    不,您不能同时使用身份和简单会员资格。

  2. Using ASP.NET Identity Server, via a token.

    使用ASP.NET Identity Server,通过令牌。

  3. You can customize the tables to meet you requirements.

    您可以自定义表以满足您的要求。

Here is the official documentation for the Identity Server.

以下是Identity Server的官方文档。