Search code examples
securitygoogle-apigoogle-oauthoauth-2.0

How to obtain access tokens from google


How to obtain oauth access tokens from google if i have only registered app and no server to redirect (as a "redirect_uri" parameter)?


Solution

  • I'm guessing that when you say you have no server, that your app is a native app. eg a desktop app or an embedded app. If so, you can generate tokens using the OAUth playground. See How do I authorise an app (web or installed) without user intervention? (canonical ?) for details.