【问题标题】:Authentication using Google and Facebook in Ionic 2在 Ionic 2 中使用 Google 和 Facebook 进行身份验证
【发布时间】:2017-03-23 15:24:26
【问题描述】:

我正在开发 Ionic 2 应用程序。我想实现社交登录选项,例如 google 和 facebook。我的后端是基于 Ruby on Rails API 构建的。我相信,我可以使用cordova facebookgoogle plugins 进行身份验证。

一旦用户通过 facebook 或 google 身份验证,重定向到后端 API 并使用我的 API 中的omniauth 端点设置进行身份验证。这将在我的应用中对用户进行身份验证。

我想知道这是否是通过 google 和 facebook 进行身份验证的正确方法?我将不胜感激有关此主题的任何帮助。

【问题讨论】:

    标签: angularjs cordova authentication ionic-framework


    【解决方案1】:

    试试 Auth0:http://auth0.com。它确实简化了所有登录场景!

    【讨论】:

    • 我已经在我的 API 中设置了电子邮件密码认证,所以我不想设置另一个基于 JWT 的认证系统。
    猜你喜欢
    • 2017-11-18
    • 2015-03-24
    • 2018-02-24
    • 1970-01-01
    • 2018-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-04
    相关资源
    最近更新 更多