Facebook登录oauth和osx 10.11/CNA [英] facebook login oauth and osx 10.11/CNA

查看:123
本文介绍了Facebook登录oauth和osx 10.11/CNA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一些背景: 我有一个热点页面,与Facebook登录oatuh集成在一起.该应用程序在facebook api v.2.4上运行,并使用node/express/passport处理登录过程 我传递给oauth fb页面的唯一选项是显示:触摸,因此在不支持cookie的情况下登录页面可以正常工作

a little background: I have an hotspot page wich integrate with facebook login oatuh. The app runs on facebook api v.2.4 and uses node/express/passport to handle the login process The only option i pass to the oauth fb page is display: touch, so the login page works fine without cookie support

问题: 几天以来,由于在CNA中不支持cookie,因此仅在osx 10.11/cna上无法处理登录(这意味着fb会忽略显示选项,仅在这种情况下)

the issue: since a few days , only on osx 10.11/cna the login can't be processed because of no cookie support in CNA (this should mean that fb ignores the display option, in this case only)

在cna中从ios设备发出的相同请求可以正常工作

the same request made from a ios device from within the cna works fine

我已经确认显示选项实际上是发送的,所以我最好的猜测是fb开始覆盖/忽略该选项.此外,我再也无法在fb api文档中找到任何参考(手动登录页面中的display = popup除外)

I've already confirmed the display option is actually send, so my best guess is that fb started overwriting/ignoring this option. Also I can't find any reference in the fb api docs anymore (except for display=popup in the manual login page)

关于此的任何提示吗?

谢谢

g

推荐答案

不确定您是否仍然存在此问题,但是我可以确认Facebook登录在10.11的CNA中肯定可以首尾结束. CNA允许cookie,但不允许访问野生动物园中的现有cookie或访问localStorage和sessionStorage.

Not sure if you still have this issue, but I can confirm facebook login definitely works end to end inside the CNA on 10.11. The CNA does allow cookies, what it doesn't allow is access to existing cookies in safari or access to localStorage and sessionStorage.

如果您的FB sdk配置有cookies = false,则很可能是您的问题.设置为false时,我相信SDK会尝试使用本地存储.

If you have your FB sdk configured with cookies=false, this may well be your issue. When set to false I believe the sdk is then attempting to use local storage.

要检查的另一件事是您在围墙花园列表中所拥有的东西.经过许多挫折之后,我们才刚踏入此问题的底部.允许某些CDN网络实际上会使iOS完成它的Internet检查,而不再认为它在俘虏门户的背后.我在 https://stackoverflow.com/a/41273984/4427589 上添加了答案.

The other thing to check would be what you have in the walled garden list. We have just got to the bottom of this issue after a lot of frustration. Allowing certain CDN networks actually causes iOS to complete it's internet check and no longer think it's behind a captive portal. I added an answer here https://stackoverflow.com/a/41273984/4427589.

正如我所说,我可以确认它确实可以在弹出窗口中端到端地工作.

As I said, I can confirm it definitely works end to end inside the popup.

欢呼 保罗

这篇关于Facebook登录oauth和osx 10.11/CNA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆