Authorizing for Web (original) (raw)

Web apps must obtain an access token to securely call Google APIs.

The Google Identity Services JavaScript library supports both authentication for user sign-in and authorization to obtain an access token for use with Google APIs. The library is intended only for use in browsers.

Authentication establishes who someone is, and is commonly referred to as user sign-up or sign-in. Authorization is the process of granting or rejecting access to data or resources. It includes obtaining and managing user consent, limiting the amount of data or resources shared with scopes, and retrieving an access token for use with Google APIs.

These guides cover authorization and data sharing topics.

How user authorization works describes the individual steps of user authorization in detail and includes user dialog examples.

If you are looking for help with authentication and how to implement user sign-up and sign-in see Sign In With Google.

This library is not intended for use with server-side JavaScript frameworks such as Node.js, instead use Google's Node.jsclient library.

What's changed

For users, the Google Identity Services library offers numerous usability improvements over earlier JavaScript libraries, including:

For developers, our focus has been to reduce complexity, improve security, and make your integration as quick and easy as possible. Some of these changes are: