diff options
author | Kotta, Shireesha (sk434m) <sk434m@att.com> | 2018-12-17 10:30:21 -0500 |
---|---|---|
committer | Kotta, Shireesha (sk434m) <shireesha.kotta@att.com> | 2018-12-17 10:56:08 -0500 |
commit | 4686d8a9ec9367e7dc75770cb69c60d5c592e63a (patch) | |
tree | c521266b9f666225393e48e112927d52b5570df9 /ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java | |
parent | 37ed86ed44e466409ac6d0ab425589377ab33c81 (diff) |
CADI Integration
Issue-ID: PORTAL-474
System to system authorization using CADI
Change-Id: I3a62840b4108851bf3f18f5c09f1ea21bd0c6844
Signed-off-by: Kotta, Shireesha (sk434m) <sk434m@att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java')
-rw-r--r-- | ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/AuthUtil.java | 8 |
1 files changed, 7 insertions, 1 deletions
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 |