From 39768755e8db5fb79d398373cdcde2cfd4e0f20a Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Thu, 7 Nov 2013 13:15:26 +0100 Subject: OAuth2 application keys shouldn't be in the code. The GDrive OAuth2 key is now defined at configure time. If either the client secret or client id is missing, the Google Drive connectivity will be disabled at runtime. Tinderboxes can set up a GDrive key, but they need to make sure it's not persisting in the build log. Change-Id: I09bc748641ec14eae890f273f05bffe4ed421dbb --- config_host/config_oauth2.h.in | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 config_host/config_oauth2.h.in (limited to 'config_host') diff --git a/config_host/config_oauth2.h.in b/config_host/config_oauth2.h.in new file mode 100644 index 000000000000..80800f5559b9 --- /dev/null +++ b/config_host/config_oauth2.h.in @@ -0,0 +1,28 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + */ + +#ifndef CONFIG_OAUTH2_H +#define CONFIG_OAUTH2_H + + +/* Google Drive settings */ +#define GDRIVE_BASE_URL "https://www.googleapis.com/drive/v2" +#define GDRIVE_CLIENT_ID "" +#define GDRIVE_CLIENT_SECRET "" +#define GDRIVE_AUTH_URL "https://accounts.google.com/o/oauth2/auth" +#define GDRIVE_TOKEN_URL "https://accounts.google.com/o/oauth2/token" +#define GDRIVE_REDIRECT_URI "urn:ietf:wg:oauth:2.0:oob" +#define GDRIVE_SCOPE "https://www.googleapis.com/auth/drive" + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3