Fix for authorization error on clamp be 99/126799/1
authorsaul.gill <saul.gill@est.tech>
Thu, 27 Jan 2022 13:30:01 +0000 (13:30 +0000)
committersaul.gill <saul.gill@est.tech>
Thu, 27 Jan 2022 13:41:38 +0000 (13:41 +0000)
Issue where requests from policy-gui were intermittently rejected
toscaControlLoop path was not registered cadi filter

Issue-ID: CLAMP-1029
Change-Id: I142ecdc255b0b917202e4ec3471199bf7992928d
Signed-off-by: saul.gill <saul.gill@est.tech>
runtime/src/main/java/org/onap/policy/clamp/clds/config/AafConfiguration.java

index 720a3f9..e8502b7 100644 (file)
@@ -4,6 +4,7 @@
  * ================================================================================
  * Copyright (C) 2017-2018, 2021 AT&T Intellectual Property. All rights
  *                             reserved.
+ * Modified Copyright (C) 2022 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -60,6 +61,7 @@ public class AafConfiguration {
         registration.addUrlPatterns("/restservices/clds/v2/policyToscaModels/*");
         registration.addUrlPatterns("/restservices/clds/v2/policies/*");
         registration.addUrlPatterns("/restservices/clds/v2/loop/*");
+        registration.addUrlPatterns("/restservices/clds/v2/toscaControlLoop/*");
         registration.setName("cadiFilter");
         registration.setOrder(0);
         return registration;