File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OpenId + OAuth hybrid protocol Implementation for google using java

 
Charan kumar sarvepalli
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to implement the OpenID + OAuth protocol using java in my web application.

I am allowing user to login using the Google openID and i want to embed the Google calendar with that email id which has been logged in.

I was created the following code, know i was successfully authenticated and i am getting the values of openID exchange attributes properly like email, first name and last name. But i was unable to get the OAuth request_token.

My Code is :

After sucessfull authentication i am trying to get the data


from above i am getting the email properly not request_token. I am refering to Google's Federated Login page http://code.google.com/apis/accounts/docs/OpenID.html#oauth

give any idea how can i resolve this issue.

Thanks.
 
Charan kumar sarvepalli
Ranch Hand
Posts: 40
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The request_token will return by Google only when the requesting URL domain name must be registered with the Google.
 
Main Pal
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Charan Kumar,

If our application is registered with "Google Apps Marketplace" and there we have specified the scopes, do we need to specify the scope here as well while requesting the request_token?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic