[英]OAuth in pop-up with Tornado Auth TwitterMixin
Is it possible to do the Tornado Oauth authenticate_redirect()
in a pop-up window, and return to main window by closing pop-up when authentication is done? 是否可以在弹出窗口中执行Tornado Oauth
authenticate_redirect()
,并在完成身份验证后通过关闭弹出窗口返回主窗口? I would like to implement this, but it seems the Tornado httpclient.AsyncHTTPClient
only will pass a completely new url to the browser. 我想实现这一点,但似乎Tornado
httpclient.AsyncHTTPClient
只会将一个全新的URL传递给浏览器。
Any help much appreciated! 任何帮助,不胜感激!
Tornado isn't aware of any pop-ups you're dealing with. 龙卷风不知道您正在处理任何弹出窗口。 Its just responding to http requests by sending either some kind of content such as html or redirects your browser to a new url.
它只是通过发送诸如html之类的内容来响应http请求,或者将您的浏览器重定向到新的url。 The pop-up behaviour you described should rather be implemented on the client side using javascript.
您描述的弹出行为应该在客户端使用javascript实现。 Check out related answers for that:
查看有关的答案:
Twitter OAuth via a popup 通过弹出窗口Twitter OAuth
Twitter oauth authorization in a pop-up instead of in main browser window Twitter oauth授权在弹出窗口中而不是在主浏览器窗口中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.