Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6795581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:21:50+00:00 2026-05-26T18:21:50+00:00

What you usually do in a GWT application to sign in using OpenID is

  • 0

What you usually do in a GWT application to sign in using OpenID is the following:

LoginInfo loginInfo = new LoginInfo();
UserService userService = UserServiceFactory.getUserService();
loginInfo.setLoginUrl(userService.createLoginURL(returnToUrl));
return loginInfo();

Where returnToUrl is the current URL you like to redirect back after verification. This works fine, if returnToUrl is a simple URL like http://mydomain.com/go/here

But as my application runs as a GMail contextual gadget, it is wrapped in a frame that gets its content from a google proxy (googleusercontent.com). So this is the – a little mor complexe – URL within the frame I like to redirect back to:

https://jtphjhg2q9h3ul31ifsbvm5hv7717h49-a-gm-opensocial.googleusercontent.com/gadgets/ifr?url=http%3A%2F%2Fgorgactsgadget.appspot.com%2Fgorgadget%2Fcom.innubili.gorgacts.client.Gorgadget.gadget.xml&container=gm&view=card

During the OpenID registration the user gets redirected several time and if the returnToUrl is not properly url encoded parts of it get lost.

As I found out here, you even in some cases have to double-encode the URL. But this time I’m not able to encode the URL correctly.

So, my questions:

  • Do you have any hints what an OpenID-return-to-URL should look like in a Gmail contextual gadget?

  • Or maybe a little simpler question: Is there any other way, I can retrieve the email of the current logged in GMail user?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:21:50+00:00Added an answer on May 26, 2026 at 6:21 pm

    You cannot use openId login from within a Gadget because your gadget is proxied by the gadget container.
    You have to open up a popup window to do the openId login and associate the opensocialId to your openId identity on the server. You have to persist the relation between openSocialId and the user identity on the server. From then on, the gadget knows its identity by requesting the relation of its opensocialId.

    see also http://code.google.com/googleapps/marketplace/best_practices.html#gadget_sso

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I usually use GWT WindowBuilder editor to design my GWT application UI, however I
When running a GWT application in hosted mode one usually needs to add the
Usually, parameter values are copied when being passed on. Using a reference may save
I usually do all my java development on linux, using fedora package manager setting
Usually, the best practice in python, when using international languages, is to use unicode
Usually Flash and Flex applications are embedded on in HTML using either a combination
Usually, when using Windows Authentication, the software (eg Internet Explorer) tries to use Windows
Usually my methods are as the following: public List<int> Method1(int input) { var output
usually i simply develop executable (.exe) files of my MATLAB codes by using this
I have a clean GWT application which I want to secure with Spring Security.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.