-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconstants.py
36 lines (32 loc) · 1.94 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
URL_LAUNCHPAD = 'https://launchpad.support.sap.com'
URL_SOFTWARE_CENTER_SERVICE = 'https://launchpad.support.sap.com/services/odata/svt/swdcuisrv'
URL_SOFTWARE_CENTER_VERSION = 'https://launchpad.support.sap.com/applications/softwarecenter/version.json'
URL_SOFTWARE_CATALOG = 'https://launchpad.support.sap.com/applications/softwarecenter/~{v}~/model/ProductView.json'
URL_ACCOUNT_ATTRIBUTES = 'https://launchpad.support.sap.com/services/account/attributes'
URL_SERVICE_INCIDENT = 'https://launchpad.support.sap.com/services/odata/incidentws'
URL_SERVICE_USER_ADMIN = 'https://launchpad.support.sap.com/services/odata/useradminsrv'
URL_SOFTWARE_DOWNLOAD = 'https://softwaredownloads.sap.com'
# Maintenance Planner
URL_MAINTENANCE_PLANNER = 'https://maintenanceplanner.cfapps.eu10.hana.ondemand.com'
URL_SYSTEMS_PROVISIONING = 'https://launchpad.support.sap.com/services/odata/i7p/odata/bkey'
URL_USERAPPS = 'https://userapps.support.sap.com/sap/support/mp/index.html'
URL_USERAPP_MP_SERVICE = 'https://userapps.support.sap.com/sap/support/mnp/services'
URL_LEGACY_MP_API = 'https://tech.support.sap.com/sap/support/mnp/services'
# The following URLs are hardcoded for Gigya Auth.
# TODO: Try to avoid them somehow.
URL_ACCOUNT = 'https://accounts.sap.com'
URL_ACCOUNT_CORE_API = 'https://core-api.account.sap.com/uid-core'
URL_ACCOUNT_CDC_API = 'https://cdc-api.account.sap.com'
URL_ACCOUNT_SSO_IDP = 'https://cdc-api.account.sap.com/saml/v2.0/{k}/idp/sso/continue'
URL_ACCOUNT_SAML_PROXY = 'https://account.sap.com/core/SAMLProxyPage.html'
URL_SUPPORT_PORTAL = 'https://hana.ondemand.com/supportportal'
USER_AGENT_CHROME = ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) '
'AppleWebKit/537.36 (KHTML, like Gecko) '
'Chrome/72.0.3626.109 Safari/537.36')
COMMON_HEADERS = {'User-Agent': USER_AGENT_CHROME}
GIGYA_HEADERS = {
'User-Agent': USER_AGENT_CHROME,
'Origin': URL_ACCOUNT,
'Referer': URL_ACCOUNT,
'Accept': '*/*',
}