From 4686d8a9ec9367e7dc75770cb69c60d5c592e63a Mon Sep 17 00:00:00 2001 From: "Kotta, Shireesha (sk434m)" Date: Mon, 17 Dec 2018 10:30:21 -0500 Subject: CADI Integration Issue-ID: PORTAL-474 System to system authorization using CADI Change-Id: I3a62840b4108851bf3f18f5c09f1ea21bd0c6844 Signed-off-by: Kotta, Shireesha (sk434m) --- .../java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java') diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java index a7aa6765..14ad234f 100644 --- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java +++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java @@ -2,7 +2,7 @@ * ============LICENSE_START========================================== * ONAP Portal SDK * =================================================================== - * Copyright © 2017 AT&T Intellectual Property. All rights reserved. + * Copyright © 2018 AT&T Intellectual Property. All rights reserved. * =================================================================== * * Unless otherwise specified, all software contained herein is licensed @@ -142,6 +142,7 @@ public class AuthUtil { str = decodeFunctionCode(instance); finalInstanceList.add(str); } + logger.debug(EELFLoggerDelegate.debugLogger, "List of AllInstances: "+ finalInstanceList); return finalInstanceList; } @@ -185,6 +186,11 @@ public class AuthUtil { if (!isauthorized) isauthorized = matchPattern(requestUri, str); } + logger.debug(EELFLoggerDelegate.debugLogger, "isAccessAllowed for the request uri: "+requestUri + "is"+ isauthorized); + if (isauthorized) { + logger.debug(EELFLoggerDelegate.debugLogger, + "Request is Authorized"); + } return isauthorized; } } \ No newline at end of file -- cgit 1.2.3-korg