Thursday, March 29, 2012

Re: GMail authentication with GWT + GAE - works in development but fails in production

I don't know how Google/AppEngine (nothing to do with GMail) works exactly, but couldn't you make it redirect to some other page containing a script that talks to the window.opener and closes the window?

On Wednesday, March 28, 2012 10:26:08 PM UTC+2, Deepak Singh wrote:
Hi Thomas,

I can not use Window.open() because after successful login, Gmail redirects user to the same window and there is no option to close the window automatically after login.



On Wed, Mar 28, 2012 at 10:11 PM, Thomas Broyer  wrote:
Window.open() ?


On Wednesday, March 28, 2012 6:15:47 PM UTC+2, Deepak Singh wrote:
The reason is that Gmail does not allow to be opened in Frame/IFrame. When i replace it with browser window, it works.

But i dont want my page to be refreshed, so any solution to avoid reloading the window in case of Gmail authentication ?

Thanks
Deepak

On Wed, Mar 28, 2012 at 7:04 AM, Joseph Lust wrote:

Deepak,

Can you run your app in DevMode but using the remote server option so that calls are being sent out to the actual Google APIs? I find it useful as you can step through and debug the production code in Eclipse, but the backend code is in production.

Just disable the built in server option, and in the GWT tab and URL field put the full remote path where you normally see MyApp.html. Of course the code versions in each side my be identical or you can get RPC errors.


Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bIgyQw2-DWAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Deepak Singh

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/mAAXGo4Y6F4J.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Deepak Singh

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vUeZc2G5we4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment