Thanks for your response. I did look at that documentation. It is more
apt for applications that are not on the App Engine. If the same logic
is used on the App Engine, the user will be redirected to a login page
again even though he is already logged into the App Engine application
using the very same Google Apps credentials.

If any of the following is supported, it would be helpful:

1. When the user is redirected to a login page from my GAEJ
application, I use the UserService for redirection. Can we log the
user into the App Engine domain and GData Services in one shot using
something like this:

String authSubUrl = AuthSubUtil.getRequestUrl(url, scope, secure,
session);
userService.createLoginURL(authSubUrl);

Someone tried it and ran into issues in production:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/6db6eea6ab183cfe/299810d80d921be7?lnk=gst&q=gdata+login#299810d80d921be7

2. Once the user logs in, fetch the session information from the App
Engine session and create an AuthSub session token for the GData
Services using this session. This does not seem possible based on
this:

http://groups.google.com/group/google-appengine-java/browse_thread/thread/3f3066dd0bd3bdeb/0260a196d798d757?lnk=gst&q=gdata+authsub#0260a196d798d757

I am trying to avoid asking the user to login twice. It seems
unavoidable. An integrated login would make perfect sense. Adding this
feature would be very helpful for many.

Thanks,
s8


On Mar 17, 12:09 am, seleronm <[email protected]> wrote:
> Hi,
> Though it is likely already to have tried
> This link might be useful.
>
> http://code.google.com/intl/us/apis/gdata/docs/auth/authsub.html
>
> Please Try.
> thanks.
>
>
>
> > Hi -
>
> > My App Engine Java application is restricted to a Google Apps domain.
> > Users are authenticated in my application using the App Engine
> > UserService. How do I obtain a AuthSub session token for the user that
> > is already logged into my application to push data into a spreadsheet
> > in his Google Apps account?
>
> > The following URL talks about GData access from GAE Python. How can
> > this be achieved in the Java version?
>
> >http://code.google.com/appengine/articles/gdata.html
>
> > Thanks,
> > s8

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to