Hi all,

I need invocate google service to get information account for my web site 
for autocomplete user registration.

I used aouth 2.0 but I have some problem...

1) In my servlet I invocate "https://accounts.google.com/o/oauth2/auth"; 
passing client_id, redirect_uri, scope (=https://www.google.com/m8/feeds/) 
and response_type (=code)
2) User redirected to google login page and insert credentials
3) Google validate data and redirect to my page passing "code" parameter
4) I invocate "https://accounts.google.com/o/oauth2/token"; passing code, 
client_id, client_secret, client_secret and grant_type (=authorization_code) 
but I have this error:
java.io.IOException: Server returned HTTP response code: 400 for URL: 
https://accounts.google.com/o/oauth2/token

Can you help me please? Which are my errors?

Thanks in advance

Luca

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/6reR7Wkhxh8J.
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