summaryrefslogtreecommitdiffstats
path: root/policyhandler/policy_engine.py
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2017-10-31 11:26:24 -0400
committerAlex Shatov <alexs@att.com>2017-10-31 11:26:24 -0400
commit38ab4a2b5d74e0e47d833c8dcaf6b2604ae9e468 (patch)
tree79673ab66a5eacb8e47724118894f7b88903de99 /policyhandler/policy_engine.py
parent81a1b05ebd918c3a8148382661f00f3183894f9a (diff)
flexible Basic versus non-basic ClientAuth to PDPv1.1.01.0.0-ONAP1.0.0-Amsterdam
PDP client (PolicyEngine.py) now can handle two formats of ClientAuth to match what we have in config * Basic <auth> * <auth> Change-Id: I4010d430a6675e3f259c1fc53b0b3373bd225352 Issue-Id: DCAEGEN2-128 Signed-off-by: Alex Shatov <alexs@att.com>
Diffstat (limited to 'policyhandler/policy_engine.py')
-rw-r--r--policyhandler/policy_engine.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/policyhandler/policy_engine.py b/policyhandler/policy_engine.py
index 68e81cf..a0ff697 100644
--- a/policyhandler/policy_engine.py
+++ b/policyhandler/policy_engine.py
@@ -88,11 +88,12 @@ class PolicyEngineClient(object):
sub_aud = Audit(aud_parent=audit)
sub_aud.metrics_start("create client to PDP")
- PolicyEngineConfig.save_to_file()
+ basic_client_auth = PolicyEngineConfig.save_to_file()
PolicyEngineClient._policy_engine = PolicyEngine(
PolicyEngineConfig.PATH_TO_PROPERTIES,
scheme=NotificationScheme.AUTO_ALL_NOTIFICATIONS.name,
- handler=PolicyEngineClient._pdp_notification_handler
+ handler=PolicyEngineClient._pdp_notification_handler,
+ basic_client_auth=basic_client_auth
)
sub_aud.metrics("created client to PDP")
seed_scope = ".*"