• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OpenId + OAuth hybrid protocol Implementation for google using java

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic