Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: sitescripts/oauth2dl/bin/constants.py

Issue 29833582: Issue 4954 - Implement a downloader script supporting OAuth2 authentication/authorization (Closed)
Patch Set: removed .Python from .gitignore and added .DS_Store to .hgignore Created Aug. 2, 2018, 9:24 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sitescripts/oauth2dl/bin/__init__.py ('k') | sitescripts/oauth2dl/bin/oauth2dl.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # This file is part of the Adblock Plus web scripts,
2 # Copyright (C) 2006-present eyeo GmbH
3 #
4 # Adblock Plus is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 3 as
6 # published by the Free Software Foundation.
7 #
8 # Adblock Plus is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
15
16 KEYFILE_NOT_FOUND_ERROR = (
17 'ERROR: Oauth2 key file not found! Please specify it as an optional '
18 'argument using -k or --key or add it to the environment variable '
19 'OAUTH2DL_KEY.'
20 )
21
22 SCOPE_NOT_FOUND_ERROR = (
23 'ERROR: Oauth2 scope not found! Please specify it as an optional argument '
24 'using -s or --scope or add it to the environment variable OAUTH2DL_SCOPE'
25 )
26
27 INVALID_KEY_FILE = 'ERROR: Invalid key file format! {0} not found in {1}!'
28
29 DUMMY_PRIVATE_KEY = (
30 '-----BEGIN RSA PRIVATE KEY-----\nMIIBOgIBAAJBAK8Q+ToR4tWGshaKYRHKJ3ZmMUF6'
31 'jjwCS/u1A8v1tFbQiVpBlxYB\npaNcT2ENEXBGdmWqr8VwSl0NBIKyq4p0rhsCAQMCQHS1+3w'
32 'L7I5ZzA8G62Exb6RE\nINZRtCgBh/0jV91OeDnfQUc07SE6vs31J8m7qw/rxeB3E9h6oGi9I'
33 'VRebVO+9zsC\nIQDWb//KAzrSOo0P0yktnY57UF9Q3Y26rulWI6LqpsxZDwIhAND/cmlg7rUz'
34 '34Pf\nSmM61lJEmMEjKp8RB/xgghzmCeI1AiEAjvVVMVd8jCcItTdwyRO0UjWU4JOz0cnw\n5'
35 'BfB8cSIO18CIQCLVPbw60nOIpUClNxCJzmMLbsrbMcUtgVS6wFomVvsIwIhAK+A\nYqT6WwsM'
36 'W2On5l9di+RPzhDT1QdGyTI5eFNS+GxY\n-----END RSA PRIVATE KEY-----'
37 )
38
39 GOOGLE_OAUTH_ERROR = 'ERROR {0} - {1}'
OLDNEW
« no previous file with comments | « sitescripts/oauth2dl/bin/__init__.py ('k') | sitescripts/oauth2dl/bin/oauth2dl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld