Scopes

class Scopes


OAuth 2.0 scopes for use with Google Play services. See the specific client methods for details on which scopes are required.

Summary

Constants

const String!
APP_STATE = "https://www.googleapis.com/auth/appstate"

Scope for using the App State service.

const String!
CLOUD_SAVE = "https://www.googleapis.com/auth/datastoremobile"

Scope for using the CloudSave service.

const String!
DRIVE_APPFOLDER = "https://www.googleapis.com/auth/drive.appdata"

Scope for accessing appfolder files from Google Drive.

const String!
DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"

Scope for access user-authorized files from Google Drive.

const String!
EMAIL = "email"

OAuth 2.0 scope for accessing user's Google account email address.

const String!
GAMES = "https://www.googleapis.com/auth/games"

Scope for accessing data from Google Play Games.

const String!
PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"

This property is deprecated.

We recommend switching to PROFILE scope to get the one-tap sign-in experience.

const String!
PLUS_ME = "https://www.googleapis.com/auth/plus.me"

This scope was previously named PLUS_PROFILE.

const String!
PROFILE = "profile"

OAuth 2.0 scope for viewing a user's basic profile information.

Constants

APP_STATE

const val APP_STATE = "https://www.googleapis.com/auth/appstate": String!

Scope for using the App State service.

CLOUD_SAVE

const val CLOUD_SAVE = "https://www.googleapis.com/auth/datastoremobile": String!

Scope for using the CloudSave service.

DRIVE_APPFOLDER

const val DRIVE_APPFOLDER = "https://www.googleapis.com/auth/drive.appdata": String!

Scope for accessing appfolder files from Google Drive.

DRIVE_FILE

const val DRIVE_FILE = "https://www.googleapis.com/auth/drive.file": String!

Scope for access user-authorized files from Google Drive.

EMAIL

const val EMAIL = "email": String!

OAuth 2.0 scope for accessing user's Google account email address.

GAMES

const val GAMES = "https://www.googleapis.com/auth/games": String!

Scope for accessing data from Google Play Games.

PLUS_LOGIN

const val PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login": String!

OAuth 2.0 scope for accessing the user's name, basic profile info and Google+ profile info.

When using this scope, your app will have access to:

  • the user's full name, profile picture, Google+ profile ID, age range, and language
  • any other publicly available information on the user's Google+ profile

PLUS_ME

const val PLUS_ME = "https://www.googleapis.com/auth/plus.me": String!

This scope was previously named PLUS_PROFILE.

When using this scope, it does the following:

  • It lets you know who the currently authenticated user is by letting you replace a Google+ user ID with "me", which represents the authenticated user, in any call to the Google+ API.

PROFILE

const val PROFILE = "profile": String!

OAuth 2.0 scope for viewing a user's basic profile information.