This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

OpenId + OAuth hybrid protocol Implementation for google using java

 
Ranch Hand
Posts: 40
  • 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
  • Likes 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.
 
Greenhorn
Posts: 1
  • 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?
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!