【问题标题】:Nodejs Apple native authenticationNodejs 苹果原生认证
【发布时间】:2020-06-24 06:11:16
【问题描述】:

我是 nodejs 后端开发人员,我有一个带有 nodejs 后端的应用程序,客户端是 ios,swift。我需要做功能sign in with apple

我发现有两种方法可以使用 Apple 登录。一种是使用restful api,一种是使用本机设备登录。

我知道如何使用 restful api 登录苹果,因为我曾与passportjs 合作,并且我之前使用 fb、twitter 登录过。但是我不明白 sign in with apple (本机方式)如何在 nodejs 端工作。

这里是文章:https://auth0.com/docs/connections/apple-siwa/add-siwa-to-native-app

【问题讨论】:

  • 你使用Firebase认证吗?
  • 不,我不使用Firebase 进行身份验证
  • @Rob认证后,你知道如何将用户信息入库吗?
  • 是的,有一个名为didCompleteWithAuthorization authorizationdelegate 方法。 tutorial 中也提到了,一旦你获取了数据,你就可以调用一个 API,将数据传递给服务器,然后你就可以获取所需的数据并将其添加到你的数据库中。

标签: ios node.js swift typescript authentication


【解决方案1】:

当您使用常规 Web 应用程序(节点)时,您应该使用基于 Web 的流程。本机实现不适用于您的情况。您可以像 Auth0 中的任何其他社交登录一样启用 Sing In with Apple。 https://auth0.com/docs/connections/apple-siwa/add-siwa-to-web-app

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-14
    • 1970-01-01
    • 1970-01-01
    • 2021-02-24
    • 2011-11-25
    • 2015-09-15
    • 2021-07-07
    相关资源
    最近更新 更多