permaculture playing cards*
The moose likes Other Languages and the fly likes OpenId + OAuth hybrid protocol Implementation for google using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "OpenId + OAuth hybrid protocol Implementation for google using java" Watch "OpenId + OAuth hybrid protocol Implementation for google using java" New topic
Author

OpenId + OAuth hybrid protocol Implementation for google using java

Charan kumar sarvepalli
Ranch Hand

Joined: Dec 14, 2008
Posts: 40
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
Charan kumar sarvepalli
Ranch Hand

Joined: Dec 14, 2008
Posts: 40

The request_token will return by Google only when the requesting URL domain name must be registered with the Google.
Main Pal
Greenhorn

Joined: May 16, 2012
Posts: 1
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: OpenId + OAuth hybrid protocol Implementation for google using java
 
Similar Threads
problem with request.getParameter()
passing a url paramter to a servlet
call html with values
how to distinguis links on a jsp ?
Reading parameters in Servlet passed from Client