From 9a162e017904c234513ef147b6548fcc0b21999e Mon Sep 17 00:00:00 2001
From: Alok Joshi <AJoshi19@slb.com>
Date: Mon, 28 Jun 2021 16:12:00 -0500
Subject: [PATCH] add auth properties in app properties

---
 devops/azure/chart/templates/deployment.yaml                  | 2 ++
 .../src/main/resources/application.properties                 | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/devops/azure/chart/templates/deployment.yaml b/devops/azure/chart/templates/deployment.yaml
index db62503cb..15743798b 100644
--- a/devops/azure/chart/templates/deployment.yaml
+++ b/devops/azure/chart/templates/deployment.yaml
@@ -79,6 +79,8 @@ spec:
               value: osdu-db
             - name: entitlements_service_endpoint
               value: http://entitlements/api/entitlements/v2
+            - name: entitlements_service_api_key
+              value: "OBSOLETE"
             - name: registeration_service_endpoint
               value: http://register/api/register/v1
             - name: partition_service_endpoint
diff --git a/provider/notification-azure/src/main/resources/application.properties b/provider/notification-azure/src/main/resources/application.properties
index 34360637b..a5e8bdbbd 100644
--- a/provider/notification-azure/src/main/resources/application.properties
+++ b/provider/notification-azure/src/main/resources/application.properties
@@ -26,6 +26,10 @@ logging.slf4jlogger.enabled=true
 logging.mdccontext.enabled=false
 logging.ignore.servlet.paths=/swagger-ui.html
 
+# Need below two properties for Entitlements config bean initialization due to a primary bean added in core-lib-azure which takes precedence over EntitlementsClientFactory class in notification service
+AUTHORIZE_API=${entitlements_service_endpoint}
+AUTHORIZE_API_KEY=${entitlements_service_api_key}
+
 # Service settings
 PARTITION_API=${partition_service_endpoint}
 app.entitlements=${entitlements_service_endpoint}
-- 
GitLab