|
|
@@ -42,6 +42,8 @@ _CNF_S3A_ACCESS_KEY = 'fs.s3a.access.key'
|
|
|
_CNF_S3A_SECRET_KEY = 'fs.s3a.secret.key'
|
|
|
_CNF_S3A_SESSION_TOKEN = 'fs.s3a.session.token'
|
|
|
|
|
|
+_CNF_S3A_RAZ_API_URL = 'fs.s3a.ext.raz.rest.host.url'
|
|
|
+
|
|
|
_CNF_ADLS_CLIENT_ID = 'dfs.adls.oauth2.client.id'
|
|
|
_CNF_ADLS_AUTHENTICATION_CODE = 'dfs.adls.oauth2.credential'
|
|
|
_CNF_ADLS_REFRESH_URL = 'dfs.adls.oauth2.refresh.url'
|
|
|
@@ -111,6 +113,14 @@ def get_s3a_secret_key():
|
|
|
def get_s3a_session_token():
|
|
|
return get_conf().get(_CNF_S3A_SESSION_TOKEN)
|
|
|
|
|
|
+def get_raz_api_url():
|
|
|
+ """
|
|
|
+ Get Raz API.
|
|
|
+
|
|
|
+ S3 only. Add check for Azure when supported.
|
|
|
+ """
|
|
|
+ return get_conf().get(_CNF_S3A_RAZ_API_URL, 'https://localhost:8080')
|
|
|
+
|
|
|
def get_adls_client_id():
|
|
|
"""
|
|
|
Get ADLS client id
|
|
|
@@ -149,4 +159,4 @@ def get_azure_client_secret():
|
|
|
return get_conf().get(_CNF_AZURE_CLIENT_SECRET)
|
|
|
|
|
|
def get_azure_client_endpoint():
|
|
|
- return get_conf().get(_CNF_AZURE_CLIENT_ENDPOINT)
|
|
|
+ return get_conf().get(_CNF_AZURE_CLIENT_ENDPOINT)
|