What I have so far is the app redirects to the consent page. The user accepts, then I\'m redirected back to localhost with a valid authorization code. From what I understa
The Dummy's Guide to 3-legged Google OAuth.
Literally everything you need to know is on this single page https://developers.google.com/identity/protocols/OAuth2WebServer . Read it twice and you'll be an OAuth ninja. In summary, it says ...
client_id
to identify your appscope
to say what permissions you're asking forredirect_uri
to tell Google where to redirect the user's browser with the resultresponse_type=code
to say you want an Auth Coderedirect_uri
, with a query param of code
which is the one-time Auth CodeIf you go to https://developers.google.com/oauthplayground/ you can run through the steps online to see what the various URLs and responses look like.