我開始以loopback api
獲得理由。目前我正嘗試通過社交登錄爲我的應用程序集成身份驗證。我發現了三個頁面,表明如何適應這一點,但他們都表明這有點不同,不清楚:github-loopback-component-passport & npmjs-loopback-component-passport & github-loopback-component-passport-example。對於最新的過程,我有點困惑。任何人都可以在如何最好地將社交登錄與回送進行最好的整合?另外,如何測試可能需要訪問令牌的路由?這是該項目的Github Repo。通過環迴護照進行社交登錄身份驗證
當前依賴
"dependencies": {
"compression": "^1.0.3",
"cors": "^2.5.2",
"lodash": "^3.10.1",
"loopback": "^2.26.2",
"loopback-boot": "^2.6.5",
"loopback-component-explorer": "^2.1.0",
"loopback-connector-mysql": "^2.2.0",
"loopback-datasource-juggler": "^2.19.0",
"loopback-stormpath": "0.0.1",
"serve-favicon": "^2.0.1",
"passport": "^0.3.2",
"underscore": "^1.8.2"
}