<properties>
<sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
<onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
+ <portal.sdk.version>2.6.0</portal.sdk.version>
<sonar.jacoco.reportPath />
<sonar.jacoco.itReportPath />
</properties>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.onap.portal.sdk</groupId>
+ <artifactId>epsdk-fw</artifactId>
+ <version>${portal.sdk.version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<!-- we don't need to deploy the top level pom project -->
<build>
<pluginManagement>
<dependency>
<groupId>org.onap.portal.sdk</groupId>
<artifactId>epsdk-fw</artifactId>
- <version>2.5.0</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<dependency>
<groupId>org.onap.portal.sdk</groupId>
<artifactId>epsdk-fw</artifactId>
- <version>2.5.0</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
}
- @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);
* (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);