1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Constants definitions
7 #include "google_apis/gaia/gaia_constants.h"
9 namespace GaiaConstants
{
11 // Gaia uses this for accounting where login is coming from.
12 const char kChromeOSSource
[] = "chromeos";
13 const char kChromeSource
[] = "ChromiumBrowser";
14 const char kReconcilorSource
[] = "ChromiumReconcilor";
16 // Service name for Gaia. Used to convert to cookie auth.
17 const char kGaiaService
[] = "gaia";
18 // Service name for Picasa API. API is used to get user's image.
19 const char kPicasaService
[] = "lh2";
21 // Service/scope names for sync.
22 const char kSyncService
[] = "chromiumsync";
24 // Service name for remoting.
25 const char kRemotingService
[] = "chromoting";
28 const char kOAuth1LoginScope
[] = "https://www.google.com/accounts/OAuthLogin";
29 const char kOAuthWrapBridgeUserInfoScope
[] =
30 "https://www.googleapis.com/auth/userinfo.email";
32 // Service/scope names for device management (cloud-based policy) server.
33 const char kDeviceManagementServiceOAuth
[] =
34 "https://www.googleapis.com/auth/chromeosdevicemanagement";
36 // OAuth2 scope for access to all Google APIs.
37 const char kAnyApiOAuth2Scope
[] = "https://www.googleapis.com/auth/any-api";
39 // OAuth2 scope for access to Chrome sync APIs
40 const char kChromeSyncOAuth2Scope
[] =
41 "https://www.googleapis.com/auth/chromesync";
42 // OAuth2 scope for access to the Chrome Sync APIs for managed profiles.
43 const char kChromeSyncSupervisedOAuth2Scope
[] =
44 "https://www.googleapis.com/auth/chromesync_playpen";
45 // OAuth2 scope for access to Google Talk APIs (XMPP).
46 const char kGoogleTalkOAuth2Scope
[] =
47 "https://www.googleapis.com/auth/googletalk";
49 const char kGoogleUserInfoEmail
[] =
50 "https://www.googleapis.com/auth/userinfo.email";
51 const char kGoogleUserInfoProfile
[] =
52 "https://www.googleapis.com/auth/userinfo.profile";
54 // Used to mint uber auth tokens when needed.
55 const char kGaiaSid
[] = "sid";
56 const char kGaiaLsid
[] = "lsid";
57 const char kGaiaOAuthToken
[] = "oauthToken";
58 const char kGaiaOAuthSecret
[] = "oauthSecret";
59 const char kGaiaOAuthDuration
[] = "3600";
60 const char kGaiaOAuth2LoginRefreshToken
[] = "oauth2LoginRefreshToken";
62 // Used to construct a channel ID for push messaging.
63 const char kObfuscatedGaiaId
[] = "obfuscatedGaiaId";
65 // Used to build ClientOAuth requests. These are the names of keys used when
66 // building base::DictionaryValue that represent the json data that makes up
67 // the ClientOAuth endpoint protocol. The comment above each constant explains
68 // what value is associated with that key.
70 // Canonical email of the account to sign in.
71 const char kClientOAuthEmailKey
[] = "email";
73 } // namespace GaiaConstants