shrhoads / gwt-oauth2

OAuth2 Client Bindings for the GWT generated javascript
Apache License 2.0
0 stars 0 forks source link

Login to Facebook without pop up #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which OAuth2 provider or API service?
Facebook

External references, such as API reference guide?
n/a

Please provide any additional information below.

Hello,

A sample that would be really great to have would be logging in Facebook 
without the pop-up (i.e on click of a "login with facebook" button the Facebook 
login page gets loaded in the same window and on login, user gets redirected 
back to their page).

Any chance of getting our hands on something like this? Any references would be 
greatly appreciated.

Original issue reported on code.google.com by a.pavlou...@googlemail.com on 28 Nov 2013 at 6:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Some further investigation (and I may be off track here) leads to AuthImpl 
where we 've got:

// Because GWT's Window.open() method does not return a reference to the
// newly-opened window, we have to manage this all ourselves manually...
private static native Window openWindow(String url, int height, int width) /*-{
   return $wnd.open(url, 'popupWindow', 'width=' + width + ',height=' + height);
  }-*/;

Perhaphs changing the popupWindow param to _self would be a cheap way out?

Original comment by a.pavlou...@googlemail.com on 28 Nov 2013 at 7:19