在移动应用程序上使用 node.js 进行本地和社交授权 [英] Local and social authorization with node.js on mobile app
本文介绍了在移动应用程序上使用 node.js 进行本地和社交授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 mongodb 作为数据库运行 node.js 服务器,对于来自浏览器的本地和 FB 身份验证,我使用passport.js如何从手机应用程序中使用两者?有人可以准确描述流程吗?因为我真的找不到这种流程的准确解释
Im running node.js server with mongodb as a DB, for local and FB auth from browser I use passport.js How can I use both from mobile phone app? Can someone describe the flow precisely? Cause I couldnt really find precise explanation of such flow
我没有立即进入流程的几点:
few points that I dont get in the flow right away:
- req.isAuthenticated 如何处理 iPhone 应用程序
- Facebook 策略如何适用于 iPhone 应用?
推荐答案
尝试以下场景:
您可以使用 facebook-ios-sdk 通过 iphone 登录获取facebook访问令牌
You can use facebook-ios-sdk for login via iphone to get facebook access token
希望这个场景能帮到你.
I hope this scenario can help you.
这篇关于在移动应用程序上使用 node.js 进行本地和社交授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文