ACCESS_TOKEN在URL未显示在SWT浏览器 [英] access_token not showing in url in SWT browser

查看:223
本文介绍了ACCESS_TOKEN在URL未显示在SWT浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪里开发用户需要登录到他们的Facebook帐户中的SWT布劳尔一个Eclipse插件。我使用的方式,描述在这里 来尝试从访问令牌该URL。它运作良好,直到今天。问题是,重定向URI不再后跟的access_token = ...的任何更多。然后我码的手动试图获得URL访问令牌在现实浏览器。它适用于Chrome和Firefox,而不是IE浏览器。在我PROGRM,SWT的浏览器定义如下:

I am developing an Eclipse plugin where user needs to login to their Facebook account in an SWT brower. I am using the way, described here to try to get the access token from the url. It had worked well until today. The problem is that redirected uri is no longer followed by "access_token=..." any more. Then I mannually tried to get the access token from url in real browsers. It works on Chrome and FireFox, not on IE. In my progrm, the SWT browser is defined as follows:

Browser browser = new Browser(container, SWT.NONE);

我想这一定是使用IE浏览器在后台和IE因为某些原因隐藏URL中的access_token。任何想法取消隐藏的访问令牌?

I guess it must've used IE in the background and IE for some reason hides the access_token from the url. Any idea for unhiding the access token?

任何输入大大AP preciated!

Any input is greatly appreciated!

推荐答案

以下的答案仅仅是指你的问题的SWT一部分。

The following answer refers only to the SWT part of your issue.

org.eclipse.swt.browser.Browser 正在使用的为其支持的每个平台的本地渲染

对于Windows默认的恰好是IE浏览器。

For Windows the default happens to be IE.

根据您的使用情况(需要支持,即OS,的Eclipse版本),你可以的强制构件使用不同的本地渲染

Depending on your use case (i.e. OS, Eclipse versions you need to support), you can force the widget to use a different native renderer.

这篇关于ACCESS_TOKEN在URL未显示在SWT浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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