title: Google OpenId and Google APIs
body: <p>I was trying to achieve an openID login with google and then get an acces token to access google apis (such google plus, or drive)</p>
  
  <p>The first attemp was successful but with a big problem:</p>
  
  <ul>
  <li>Make the openId stuff, and the user is redirected to google to identify himself, then return to my app identified.</li>
  <li>Make the oAuth stuff with google apis, redirect the user again to identify himself and cameback with a code, then exchange the code for the access token needed to call google apis.</li>
  </ul>
  
  <p>The user needs to identify twice. That's not good.</p>
  
  <p>I read and tryed the <a href="https://developers.google.com/accounts/docs/OpenID#oauth" rel="nofollow">google hybrid openId and oAuth</a>. All links there points to the deprecated oAuth1 interface, and i cant make it work, i get the user identified but not request_token to continue the oAuth stuff.</p>
  
  <p>So i have a couple of questions:</p>
  
  <ul>
  <li>Is there a way to identify the user agains google openId and at the same time get the users consent to access google apis?</li>
  <li>Is the hybrid protocol still working with oAuth2 and new google apis?</li>
  <li>I'm on the good way or im missing something?</li>
  </ul>
  
  <p>I need both openId and oAuth beacouse the application needs to be in the google marketplace and is a must to login users with openId, and i need to hit some APIs that need oAuth2 access_token.</p>
  
  <p>Thanks!</p>