Code Review
/
aai
/
sparky-be.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[AAI-2787] | Update AAI UI with portal sdk 2.6.0
[aai/sparky-be.git]
/
sparkybe-onap-service
/
src
/
main
/
java
/
org
/
onap
/
aai
/
sparky
/
security
/
portal
/
PortalRestAPICentralServiceImpl.java
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
(file)
--- 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 {
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 {
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);
} catch (Exception e) {
String response = "PortalRestAPICentralServiceImpl.isAppAuthenticated failed";
LOG.error(response, e);