【问题标题】:Using SFSafariViewController instead of ASWebAuthenticationSession/SFAuthenticationSession for OAuth使用 SFSafariViewController 代替 ASWebAuthenticationSession/SFAuthenticationSession 进行 OAuth
【发布时间】:2019-06-19 06:01:32
【问题描述】:

我们的用户体验团队不喜欢每次打开登录页面时都会弹出同意书。此外,我们希望自定义使用 ASWebAuthenticationSession/SFAuthenticationSession 实现 OAuth 时显示的浏览器窗口的外观。

由于上述原因,我正在考虑更改实现并直接使用SFSafariViewController 进行身份验证。

虽然我没有找到任何参考,但我担心如果使用 SFSafariViewController 进行 OAuth 会在 Appstore 提交中出现问题,因为 Apple 已经以 ASWebAuthenticationSession/SFAuthenticationSession 的形式提供了一种方法?有人对此有看法吗?

【问题讨论】:

  • SHN,你能做到吗?
  • @CaseyPerkins,对不起,我们没有继续使用 SFSafariViewController,使用了 ASWebAuthenticationSession 并且 UI 团队批准了同意弹出窗口。

标签: ios oauth-2.0 sfsafariviewcontroller sfauthenticationsession aswebauthenticationsession


【解决方案1】:

由于 iOS 11 SFSafariViewController 不再共享 cookie,所以恐怕这是不可能的。

【讨论】:

  • 对不起,我不是很清楚,SFVC 不再共享 cookie - 这意味着 SSO 将无法工作,但我们仍然可以在应用程序中打开 SFVC 并获取身份验证令牌。我担心的是:如果使用 SFSafariViewController 而不是新的 SFAuthenticationSession 实现 OAuth,提交到 AppStore 是否会有任何问题?
猜你喜欢
  • 1970-01-01
  • 2020-08-11
  • 1970-01-01
  • 1970-01-01
  • 2019-06-23
  • 1970-01-01
  • 1970-01-01
  • 2022-01-03
  • 2012-05-24
相关资源
最近更新 更多