diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-11-07 13:15:26 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-11-07 18:48:55 +0100 |
commit | 39768755e8db5fb79d398373cdcde2cfd4e0f20a (patch) | |
tree | 9dfe20d6e1358fdd7296b49315e3d1278110bf1b /config_host | |
parent | 9c30388aa239d7c9707d31bf827a2c5322a51e27 (diff) |
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
Diffstat (limited to 'config_host')
-rw-r--r-- | config_host/config_oauth2.h.in | 28 |
1 files changed, 28 insertions, 0 deletions
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: */ |