gaia_constants.cc revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
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. 4// 5// Constants definitions 6 7#include "google_apis/gaia/gaia_constants.h" 8 9namespace GaiaConstants { 10 11// Gaia uses this for accounting where login is coming from. 12const char kChromeOSSource[] = "chromeos"; 13const char kChromeSource[] = "ChromiumBrowser"; 14 15// Service name for Gaia. Used to convert to cookie auth. 16const char kGaiaService[] = "gaia"; 17// Service name for Picasa API. API is used to get user's image. 18const char kPicasaService[] = "lh2"; 19 20// Service/scope names for sync. 21const char kSyncService[] = "chromiumsync"; 22 23// Service name for remoting. 24const char kRemotingService[] = "chromoting"; 25// Service name for cloud print. 26const char kCloudPrintService[] = "cloudprint"; 27 28// Service/scope names for device management (cloud-based policy) server. 29const char kDeviceManagementServiceOAuth[] = 30 "https://www.googleapis.com/auth/chromeosdevicemanagement"; 31 32// OAuth2 scope for access to all Google APIs. 33const char kAnyApiOAuth2Scope[] = "https://www.googleapis.com/auth/any-api"; 34 35// Service for LSO endpoint of Google that exposes OAuth APIs. 36const char kLSOService[] = "lso"; 37 38// Used to mint uber auth tokens when needed. 39const char kGaiaSid[] = "sid"; 40const char kGaiaLsid[] = "lsid"; 41const char kGaiaOAuthToken[] = "oauthToken"; 42const char kGaiaOAuthSecret[] = "oauthSecret"; 43const char kGaiaOAuthDuration[] = "3600"; 44const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken"; 45 46// Used to construct a channel ID for push messaging. 47const char kObfuscatedGaiaId[] = "obfuscatedGaiaId"; 48 49// Used to build ClientOAuth requests. These are the names of keys used when 50// building base::DictionaryValue that represent the json data that makes up 51// the ClientOAuth endpoint protocol. The comment above each constant explains 52// what value is associated with that key. 53 54// Canonical email of the account to sign in. 55const char kClientOAuthEmailKey[] = "email"; 56 57} // namespace GaiaConstants 58