summaryrefslogtreecommitdiffstats
path: root/aai-resources/pom.xml
diff options
context:
space:
mode:
authorRodrigo Lima <rodrigo.lima@yoppworks.com>2020-09-03 11:54:27 -0400
committerRodrigo Lima <rodrigo.lima@yoppworks.com>2020-09-08 11:25:04 -0400
commit696ebd9e433f2b6f890c6032a4febdb9d3ec8eb7 (patch)
tree427d1b6980fac114b4503407d434fa7ae979e743 /aai-resources/pom.xml
parent4714ea1e5f45fe286a25adbcad8e553c6250a821 (diff)
Add keycloak integration
- The feature can be enabled by adding keycloak spring profile in application properties. - Add keycloak springboot and spring security adapter to pom - Exclude keycloak and spring security autoconfiguration in application properties - Add keycloak application properties that is activated when keycloak profile used - Add WebSecurityConfig to config authorization Issue-ID: AAI-3129 Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com> Change-Id: Iaa086b4075c03237388a997274d01bf8b8114b4d
Diffstat (limited to 'aai-resources/pom.xml')
-rw-r--r--aai-resources/pom.xml30
1 files changed, 29 insertions, 1 deletions
diff --git a/aai-resources/pom.xml b/aai-resources/pom.xml
index 828b91a..a54f79d 100644
--- a/aai-resources/pom.xml
+++ b/aai-resources/pom.xml
@@ -77,7 +77,7 @@
<schema.ingest.file>${project.basedir}/src/main/resources/application.properties</schema.ingest.file>
<!-- End of Default ONAP Schema Properties -->
-
+ <keycloak.version>11.0.2</keycloak.version>
<!-- Setting some default value to not complain by editor but it will be overridden by gmaven plugin -->
</properties>
<profiles>
@@ -607,7 +607,26 @@
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-groovy</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-security</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.keycloak</groupId>
+ <artifactId>keycloak-spring-boot-starter</artifactId>
+ </dependency>
</dependencies>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.keycloak.bom</groupId>
+ <artifactId>keycloak-adapter-bom</artifactId>
+ <version>${keycloak.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
<build>
<resources>
<resource>
@@ -859,6 +878,15 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <configuration combine.children="append">
+ <excludes>
+ <exclude>**/*WebSecurityConfig.*</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
</plugins>
</build>
<reporting>