Skip to content

Instantly share code, notes, and snippets.

@isabellachen
Created October 27, 2017 10:09
Show Gist options
  • Save isabellachen/6ca8cc2a0b68143567ddfce4dbea1c94 to your computer and use it in GitHub Desktop.
Save isabellachen/6ca8cc2a0b68143567ddfce4dbea1c94 to your computer and use it in GitHub Desktop.
How to set up user authentication for a Chrome Extension using the Chrome Identity API

How to set up user authentication for a Chrome Extension using the Chrome Identity API

  1. Create a private key file, from which you can create the manifest key and Application ID, as detailed here: https://stackoverflow.com/questions/23873623/obtaining-chrome-extension-id-for-development
  2. Add the manifest key to "key" in manifest.json
  3. Create a new project in Google Developer Console https://console.developers.google.com/project
  4. Go to "APIs & auth > Credentials" and create new client id for a Chrome Application using the Application ID generated in step 3.
  5. Copy the Client ID to oauth2.client_id in the manifest.json

Deprecated?

  1. Create a new app on the Chrome Web Store Developer Dashboard https://chrome.google.com/webstore/developer/dashboard
  2. Click on "more info" and copy the public key to "key" in manifest.json. (or not needed because of next step...?)

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment