我有多次登录我的网站,如登录Facebook或注册我的网站 [英] i have multiple login with my website like login with facebook or register to my site

查看:628
本文介绍了我有多次登录我的网站,如登录Facebook或注册我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多次登录我的网站,如登录facebook或注册到我的网站,所以我想知道我应该如何为这多个登录设计我的数据库

i have multiple login with my website like login with facebook or register to my site so i want to know how should i design my database for this multiple logins

推荐答案

如果您使用外部登录,例如Facebook,Twitter,Google等,如果您在ASP.NET(MVC)框架中使用ASPNET标识,则不需要管理数据库。将外部帐户配置到应用程序时,默认情况下会将一些最少的信息保存到数据库中,该信息将与站点的其他内部用户一起存储。



请查看以下链接了解详情: http://www.asp.net/web-pages/overview/security/enabling-login-from-external-sites -in-an-aspnet-web-pages-site



外部身份验证将允许用户使用他们的身份登录,您需要配置通过将其注册到提供商,将站点/应用程序提供给外部提供商。用户不会看到任何后面的内容,当他们创建登录时,他们将被提示信任应用程序以从提供商处获取他们的详细信息。此外,密码和有关用户的其他信息将由提供商管理。只有一些身份信息将存储在您的数据库中。



您还可以查看:

http://www .asp.net / mvc / overview / security / create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on [ ^ ]



希望这会有所帮助。
If you use external logins such as Facebook, Twitter, Google etc. you don't need manage database for them if you use ASPNET Identity in ASP.NET (MVC) framework. When you configure the external account to your application, it will by default save some minimal information to the database which will be stored along with other internal users of your site.

Please have a look at the link below for details:http://www.asp.net/web-pages/overview/security/enabling-login-from-external-sites-in-an-aspnet-web-pages-site

The external authentications will allow the users to login using their Identities, you need to configure your site/app to the external providers by register it to the providers. The users will not see anything what is going behind the see, when they will create the logins, they will be prompted to trust the app to get their details from the providers. Also the password and other information regarding the users will be managed by the providers. Only some Identity information will be stored in your database.

Also you can have a look at:
http://www.asp.net/mvc/overview/security/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on[^]

Hope this will help.


这篇关于我有多次登录我的网站,如登录Facebook或注册我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆