-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathconstants.py
More file actions
23 lines (19 loc) · 1.07 KB
/
constants.py
File metadata and controls
23 lines (19 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
# DCC related
PAYLOAD_ISSUER, PAYLOAD_ISSUE_DATE, PAYLOAD_EXPIRY_DATE, PAYLOAD_HCERT = 1, 6, 4, -260
DCC_TYPES = {'v': "VAC", 't': "TEST", 'r': "REC"}
EXTENDED_KEY_USAGE_OIDs = {'t':'1.3.6.1.4.1.0.1847.2021.1.1','v':'1.3.6.1.4.1.0.1847.2021.1.2','r':'1.3.6.1.4.1.0.1847.2021.1.3',
'T':'1.3.6.1.4.1.1847.2021.1.1', 'V':'1.3.6.1.4.1.1847.2021.1.2', 'R':'1.3.6.1.4.1.1847.2021.1.3'}
EU_COUNTRIES = ['BE', 'EL', 'GR', 'LT', 'PT', 'BG', 'ES', 'LU', 'RO', 'CZ', 'FR', 'HU', 'SI', 'DK', 'HR', 'MT', 'SK',
'DE', 'IT', 'NL', 'FI', 'EE', 'CY', 'AT', 'SE', 'IE', 'LV', 'PL'] # Greece included as EL and GR
# URLs
# Former hard coded URLs are now deprecated and may be taken out of order in the future
#ACC_KID_LIST = os.environ['DCC_KID_LIST']
#ACC_CERT_LIST = os.environ['DCC_CERT_LIST']
DSC_LIST = os.environ['DSC_LIST']
VALUESET_LIST = os.environ['DCC_VALUESET_LIST']
VALUESET_LIST_ALTERNATIVE = os.environ['DCC_VALUESET_LIST_ALT']
SCHEMA_BASE_URI = os.environ['DCC_SCHEMA_BASE_URI']
# Headers
X_RESUME_TOKEN = 'x-resume-token'
X_KID = 'X-KID'