简体   繁体   English

社交登录身份验证。 在iFrame中可能

[英]Social Log In Authentication. Possible in iFrame

I have reverse engineered a social login framework to use frames instead of popup windows. 我对社交登录框架进行了反向工程,以使用框架而不是弹出窗口。 It is working but appears that the authentication content will not display. 它正在工作,但是似乎不会显示身份验证内容。

I wondered if maybe this was deliberate from the social network provider as I cannot find a mistake in my code. 我想知道这是否是社交网络提供商故意设计的,因为我找不到代码中的错误。

EDIT.,, 编辑。,,

I have been told that this deliberate to prevent a cyber attack. 有人告诉我,这是为了防止网络攻击。 Pop Up window are monstrously ugly though and terrible on mobile devices. 弹出窗口非常丑陋,并且在移动设备上非常糟糕。 Is there a replacement that can work. 是否有可以使用的替代品。 Since iFrames cannot is there another way of keeping it seemingly inline to the page. 由于无法使用iFrame,因此还有另一种方法可以使其与页面保持内联。

If you want to make it seamless, then you'll need to look at an alternative approach altogether. 如果要使其无缝,则需要完全考虑另一种方法。 Most of these social networks (twitter, facebook etc) have api's that allow you to connect and login "in code" rather than just OAuth from your page. 这些社交网络(推特,facebook等)中的大多数都具有api,这些API允许您连接并“以代码形式”登录,而不仅仅是页面中的OAuth。

That's the only way you can reliably avoid the dreaded popup. 这是您可以可靠避免可怕的弹出窗口的唯一方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM