HI,
I have a separate web server running Java servlets that I want to be able to make authenticated request to my GAE app, using regular Google acount authentication.
My problem is that I need this web server to retrieve the auth token that allows to login to GAE and have subsequent requests authentified.
There's no problem doing that if the user enters is Google account l/p on the separate web server using a form. For example like documented here:
using the ClientLogin API:
http://krasserm.blogspot.com/2010/01/accessing-security-enabled-google-app.htmlHowever I want to avoid having doing that and instead have the user grant access to his Google account using the standard Google page (the one that is displayed with UserServiceFactory.getUserService().createLoginURL() on GAE). In short I'd like to have the same functionality that the createLoginURL() GAE API but triggered from my separate web server, to get the required auth token necessary for the server to do requests to the GAE app.
From what I tried, this doesnt seem possible. The Google page whose URL is returned by createLoginURL() works only if the request comes from a GAE app.
So my question is if it is possible for an external web server to redirect a user to a page for granting access this web server to make authentified request to GAE? Or will I have to directly ask the user for is Google account credentials ? Does OAuth allow such functionality ?