Integrate the Auth0 with the Google Drive API

Dear All,

I’m thinking of scenarios like the following:

  1. The user clicks on the sign up / login button for one of the providers, say Google, on my website.
  2. He/she is redirected to Google, and Google asks for the basic scope as well as some additional ones such as ones for Google Drive.
  3. He/she clicks on the button to “grant” or something similar.
  4. He/she is authenticated. At this point, Auth0 should have his/her access token.
  5. My website wants to use the access token to call some of the Google Drive APIs.

Auth0 scenarios ( from 1 to 4 ) are the same as above. After login I received an access token but I can’t use that token with google api ( Error: invalid token ).

Could you please support me? Thanks!

Hi @geekhmer,

Welcome to the Auth0 Community!

You will need the Identity Provider Access Tokens to call the API owned by Google. Let me know if you have questions about it.

Hi @dan.woda ,

Well, You hit the point. Thank you so much for the quick answer.

1 Like

No problem. Let us know if you have any other questions!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.