简体   繁体   English

社交媒体和使用自己的数据库定期登录应用程序

[英]Social media and regular login in app using own db

I'm currently building an app (android and ios) for which I now need users to be able to login. 我目前正在构建一个应用程序(android和ios),现在我需要用户能够登录。 It must be possible to both sign up regularly (entering username, password, name, mail etc.) and to login through various not yet determined social media such as facebook, twitter, gmail, hotmail. 必须既可以定期注册(输入用户名,密码,名称,邮件等),又可以通过各种尚未确定的社交媒体(例如Facebook,Twitter,Gmail,Hotmail)登录。

Now my questions are as follows: 1. Are there any framework's supporting this kind of in-app+social media login scenario ? 现在我的问题如下:1.是否有任何框架支持这种应用程序内社交媒体登录场景? (I know there is stuff like auth0 but it seems that you don't have that much control with this. As I'm going to save statistics about user navigation and such I think it would be preferable to store all my users in my own db, regardless of their way of logging in. Thus to me it seems like what I need is just an easy way of getting information from these social media and then register users as if they had just signed up regularly am I right ? 2. Anything obvious I'm missing ? (我知道这里有auth0之类的东西,但似乎您对此没有太多控制。由于我将保存有关用户导航的统计信息,因此我认为最好将所有用户存储在自己的用户中在我看来,我所需要的只是从这些社交媒体获取信息然后注册用户的一种简单方法,就好像他们刚刚定期注册一样,对吗?2。很明显我想念吗?

All of these social media sites have their own sdk's that allow you to login users and get certain information from them. 所有这些社交媒体网站都有自己的SDK,可让您登录用户并从中获取某些信息。 So using a website like facebook's sdk you request certain information about the user logging in such as email and first/last name, then save this information in your database including it came from facebook. 因此,使用类似Facebook的sdk的网站,您需要有关用户登录的某些信息(例如电子邮件和姓氏/名字),然后将此信息保存在数据库中,包括来自Facebook的信息。 You will need to also create/encrypt a password for someone coming from a site like this. 您还需要为来自此类站点的某人创建/加密密码。 This is very important, obviously they won't give you access to a user's password but you don't want the user's account on your website to be vulnerable. 这非常重要,很明显,它们不会给您访问用户密码的权限,但是您不希望用户在您网站上的帐户受到攻击。 I would limit the number of ways to login because you will have to program and work with each websites sdk in order to do this. 我将限制登录方式的数量,因为您必须为此编程并与每个网站sdk一起使用。 Probably just use your own login and a facebook login to start 可能只是使用您自己的登录名和Facebook登录名开始

Here is a link to facebooks website for developers which gives you access to their sdk's for different platforms https://developers.facebook.com/docs/apis-and-sdks 这是开发人员的Facebook网站链接,可让您访问不同平台的SDK https://developers.facebook.com/docs/apis-and-sdks

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM