summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-service/src/main
diff options
context:
space:
mode:
authorSneha Dantkale <Sneha.dantkale@amdocs.com>2020-02-21 19:51:11 +0530
committerSneha Dantkale <sneha.dantkale@amdocs.com>2020-02-21 14:32:16 +0000
commit37198055321d65aff51d06716461050752cea9a5 (patch)
tree01d0de6c766f5667b6ae13fe6d60c140227f7d45 /sparkybe-onap-service/src/main
parent34687b40708b969424b0f4489258a9476ec6a917 (diff)
[AAI-2787] | Update AAI UI with portal sdk 2.6.0
Issue-ID: AAI-2787 Signed-off-by: Sneha Dantkale <Sneha.dantkale@amdocs.com> Change-Id: Ie8346f51fd5921c9935561c27e16598d70999455
Diffstat (limited to 'sparkybe-onap-service/src/main')
-rw-r--r--sparkybe-onap-service/src/main/java/org/onap/aai/sparky/security/portal/PortalRestAPICentralServiceImpl.java9
-rw-r--r--sparkybe-onap-service/src/main/java/org/onap/aai/sparky/security/portal/PortalRestAPIServiceImpl.java7
2 files changed, 13 insertions, 3 deletions
diff --git a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/security/portal/PortalRestAPICentralServiceImpl.java b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/security/portal/PortalRestAPICentralServiceImpl.java
index 922597d..90c5fe9 100644
--- a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/security/portal/PortalRestAPICentralServiceImpl.java
+++ b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/security/portal/PortalRestAPICentralServiceImpl.java
@@ -233,13 +233,18 @@ public class PortalRestAPICentralServiceImpl
}
- @Override
+ @Deprecated
public boolean isAppAuthenticated(HttpServletRequest request) throws PortalAPIException {
+ return isAppAuthenticated(request,null);
+ }
+
+ @Override
+ public boolean isAppAuthenticated(HttpServletRequest request,Map<String, String> paramMap) throws PortalAPIException {
LOG.debug("Authentication request");
String nameSpace = PortalApiProperties.getProperty(PortalApiConstants.AUTH_NAMESPACE);
boolean accessAllowed = false;
try {
- accessAllowed = AuthUtil.isAccessAllowed(request, nameSpace);
+ accessAllowed = AuthUtil.isAccessAllowed(request, nameSpace,getCredentials());
} catch (Exception e) {
String response = "PortalRestAPICentralServiceImpl.isAppAuthenticated failed";
LOG.error(response, e);
diff --git a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/security/portal/PortalRestAPIServiceImpl.java b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/security/portal/PortalRestAPIServiceImpl.java
index 0835b7b..7a71fbc 100644
--- a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/security/portal/PortalRestAPIServiceImpl.java
+++ b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/security/portal/PortalRestAPIServiceImpl.java
@@ -187,8 +187,13 @@ public class PortalRestAPIServiceImpl implements IPortalRestAPIService {
* (non-Javadoc)
*
*/
- @Override
+ @Deprecated
public boolean isAppAuthenticated(HttpServletRequest request) throws PortalAPIException {
+ return isAppAuthenticated(request,null);
+ }
+
+ @Override
+ public boolean isAppAuthenticated(HttpServletRequest request,Map<String, String> paramMap) throws PortalAPIException {
LOG.debug("Authentication request");
PortalAuthenticationConfig config = PortalAuthenticationConfig.getInstance();
String restUsername = request.getHeader(PortalAuthenticationConfig.PROP_USERNAME);