Manifest - oauth2

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",
// ...
}
```

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022年11月14日 UTC.