Welcome What's new in Chrome extensions API reference Samples
Welcome What's new in Chrome extensions API reference Samples

Manifest - oauth2

Published on

An optional manifest key enabling the use of an OAuth 2.0 security ID on the extension. This key takes an object with two required sub-properties: "client_id" and "scopes". When developing an extension that uses an "oauth2" key, consider also setting the extension's "key" to keep a consistent extension ID.

For more detailed implementation instructions, visit the full OAuth 2.0 tutorial.

{
// ...
"oauth2": {
"client_id": "YOUR_EXTENSION_OAUTH_CLIENT_ID.apps.googleusercontent.com",
"scopes": ["https://www.googleapis.com/auth/contacts.readonly"]
},
"key": "EXTENSION_PUBLIC_KEY",
// ...
}

Published on Improve article

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.