// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Constants definitions #include "google_apis/gaia/gaia_constants.h" namespace GaiaConstants { // Gaia uses this for accounting where login is coming from. const char kChromeOSSource[] = …; const char kChromeSource[] = …; const char kUnexpectedServiceResponse[] = …; // OAuth scopes. const char kOAuth1LoginScope[] = …; // Service/scope names for device management (cloud-based policy) server. const char kDeviceManagementServiceOAuth[] = …; // OAuth2 scope for access to all Google APIs. const char kAnyApiOAuth2Scope[] = …; // OAuth2 scope for access to Chrome sync APIs const char kChromeSyncOAuth2Scope[] = …; // OAuth2 scope for access to the Chrome Sync APIs for managed profiles. const char kChromeSyncSupervisedOAuth2Scope[] = …; // OAuth2 scope for parental consent logging for secondary account addition. const char kKidManagementPrivilegedOAuth2Scope[] = …; // OAuth2 scope for access to Google Family Link Supervision Setup. const char kKidsSupervisionSetupChildOAuth2Scope[] = …; // OAuth2 scope for access to Google Talk APIs (XMPP). const char kGoogleTalkOAuth2Scope[] = …; // OAuth2 scope for access to Google account information. const char kGoogleUserInfoEmail[] = …; const char kGoogleUserInfoProfile[] = …; // OAuth2 scope for IP protection proxy authentication const char kIpProtectionAuthScope[] = …; // OAuth2 scope for access to the parent approval widget. const char kParentApprovalOAuth2Scope[] = …; // OAuth2 scope for access to the people API (read-only). const char kPeopleApiReadOnlyOAuth2Scope[] = …; // OAuth2 scope for access to the people API (read-write). const char kPeopleApiReadWriteOAuth2Scope[] = …; // OAuth2 scope for access to the people API person's locale preferences // (read-only). const char kProfileLanguageReadOnlyOAuth2Scope[] = …; // OAuth2 scope for access to the programmatic challenge API (read-only). const char kProgrammaticChallengeOAuth2Scope[] = …; // OAuth2 scope for access to the Reauth flow. const char kAccountsReauthOAuth2Scope[] = …; // OAuth2 scope for access to audit recording (ARI). const char kAuditRecordingOAuth2Scope[] = …; // OAuth2 scope for access to clear cut logs. const char kClearCutOAuth2Scope[] = …; // OAuth2 scope for FCM, the Firebase Cloud Messaging service. const char kFCMOAuthScope[] = …; // OAuth2 scope for access to Tachyon api. const char kTachyonOAuthScope[] = …; // OAuth2 scope for access to the Photos API. const char kPhotosOAuth2Scope[] = …; // OAuth2 scope for access to the SecureConnect API. extern const char kSecureConnectOAuth2Scope[] = …; // OAuth2 scope for access to Cast backdrop API. const char kCastBackdropOAuth2Scope[] = …; // OAuth2 scope for access to passwords leak checking API. const char kPasswordsLeakCheckOAuth2Scope[] = …; // OAuth2 scope for access to Chrome safe browsing API. const char kChromeSafeBrowsingOAuth2Scope[] = …; // OAuth2 scope for access to kid permissions by URL. const char kClassifyUrlKidPermissionOAuth2Scope[] = …; const char kKidFamilyReadonlyOAuth2Scope[] = …; // OAuth2 scope for access to payments. const char kPaymentsOAuth2Scope[] = …; const char kCryptAuthOAuth2Scope[] = …; // OAuth2 scope for access to Drive. const char kDriveOAuth2Scope[] = …; // OAuth2 scope for access for DriveFS to access flags. const char kExperimentsAndConfigsOAuth2Scope[] = …; // The scope required for an access token in order to query ItemSuggest. const char kDriveReadOnlyOAuth2Scope[] = …; // OAuth2 scope for access to Assistant SDK. const char kAssistantOAuth2Scope[] = …; // OAuth2 scope for access to nearby devices (fast pair) APIs. const char kCloudPlatformProjectsOAuth2Scope[] = …; // OAuth2 scope for access to nearby sharing. const char kNearbyShareOAuth2Scope[] = …; // OAuth2 scope for access to nearby sharing. const char kNearbyPresenceOAuth2Scope[] = …; // OAuth2 scopes for access to GCM account tracker. const char kGCMGroupServerOAuth2Scope[] = …; const char kGCMCheckinServerOAuth2Scope[] = …; // OAuth2 scope for access to readonly Chrome web store. const char kChromeWebstoreOAuth2Scope[] = …; // OAuth2 scope for access to Account Capabilities API. const char kAccountCapabilitiesOAuth2Scope[] = …; // OAuth2 scope for support content API. const char kSupportContentOAuth2Scope[] = …; // OAuth 2 scope for NTP Photos module API. const char kPhotosModuleOAuth2Scope[] = …; // OAuth 2 scope for NTP Photos module image API. const char kPhotosModuleImageOAuth2Scope[] = …; // OAuth 2 scope for the Discover feed. const char kFeedOAuth2Scope[] = …; // OAuth 2 scope for the k-Anonymity Service API. const char kKAnonymityServiceOAuth2Scope[] = …; // OAuth 2 scope for readonly access to Calendar. const char kCalendarReadOnlyOAuth2Scope[] = …; // OAuth 2 scope for Google Password Manager passkey enclaves. const char kPasskeysEnclaveOAuth2Scope[] = …; // OAuth2 scope for Cloud Search query API. const char kCloudSearchQueryOAuth2Scope[] = …; // OAuth 2 scopes for Google Tasks API. const char kTasksReadOnlyOAuth2Scope[] = …; const char kTasksOAuth2Scope[] = …; // OAuth 2 scope for YouTube Music API. const char kYouTubeMusicOAuth2Scope[] = …; // OAuth 2 scopes for Google Classroom API. const char kClassroomReadOnlyCoursesOAuth2Scope[] = …; const char kClassroomReadOnlyCourseWorkSelfOAuth2Scope[] = …; const char kClassroomReadOnlyStudentSubmissionsSelfOAuth2Scope[] = …; const char kClassroomReadOnlyRostersOAuth2Scope[] = …; // OAuth2 scopes for Optimization Guide. const char kOptimizationGuideServiceGetHintsOAuth2Scope[] = …; const char kOptimizationGuideServiceModelExecutionOAuth2Scope[] = …; // OAuth2 scopes for Lens. const char kLensOAuth2Scope[] = …; // Used to build ClientOAuth requests. These are the names of keys used when // building base::DictionaryValue that represent the json data that makes up // the ClientOAuth endpoint protocol. The comment above each constant explains // what value is associated with that key. // Canonical email of the account to sign in. const char kClientOAuthEmailKey[] = …; // Used as an Invalid refresh token. const char kInvalidRefreshToken[] = …; // Name of the Google authentication cookie. const char kGaiaSigninCookieName[] = …; } // namespace GaiaConstants