Here is a more in depth walkthrough in order to get OAuth working within a Chrome Extension:Įssentially you need to upload your extension as a draft in the Chrome Developer Dashboard. As long as you use your Google account in the extension you shouldn't need to go through the verification process. I would also make sure to configure your consent screen to add Google Drive which will be a sensitive permission. This can then be added to the manifest.json. The article then states you need to remove the packed extension and load your unpacked dev extension.įor the client_id you need to create a new OAuth Client ID (Web Application) and add a redirect URI in the following structure:
This suggests that the key can be found by looking at the "id" field of the extension in chrome://extensions. I tried the instructions in this article: I haven't published the extension so far and am struggling to work out what the value of the key and the client_id should be in the manifest. I am trying to get a google extension to use the Google Drive api.