You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ma...@apache.org on 2023/12/12 17:51:38 UTC
(incubator-kie-kogito-examples) branch quarkus-3.2LTS updated: - Fix Spring-boot OIDC examples. Replacing `spring-security-oauth2-authorization-server` to `spring-boot-starter-oauth2-resource-server` (#1842)
This is an automated email from the ASF dual-hosted git repository.
mariofusco pushed a commit to branch quarkus-3.2LTS
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-examples.git
The following commit(s) were added to refs/heads/quarkus-3.2LTS by this push:
new deb42daf0 - Fix Spring-boot OIDC examples. Replacing `spring-security-oauth2-authorization-server` to `spring-boot-starter-oauth2-resource-server` (#1842)
deb42daf0 is described below
commit deb42daf06a816499e1ac353d64b74f393e9890d
Author: Pere Fernández <pe...@users.noreply.github.com>
AuthorDate: Tue Dec 12 18:51:33 2023 +0100
- Fix Spring-boot OIDC examples. Replacing `spring-security-oauth2-authorization-server` to `spring-boot-starter-oauth2-resource-server` (#1842)
---
.../pom.xml | 4 ++--
.../src/test/java/org/acme/travels/ApprovalsRestIT.java | 7 ++++---
.../process-usertasks-with-security-oidc-springboot/pom.xml | 4 ++--
.../src/test/java/org/acme/travels/ApprovalsRestIT.java | 5 +++--
4 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml
index a053308b2..698f5411e 100644
--- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml
+++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml
@@ -78,8 +78,8 @@
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
- <groupId>org.springframework.security</groupId>
- <artifactId>spring-security-oauth2-authorization-server</artifactId>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency>
<dependency>
diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsRestIT.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsRestIT.java
index 4de7e1b2b..d5ae04c3c 100644
--- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsRestIT.java
+++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsRestIT.java
@@ -18,8 +18,6 @@
*/
package org.acme.travels;
-import io.restassured.RestAssured;
-import io.restassured.http.ContentType;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -33,13 +31,16 @@ import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
+import io.restassured.RestAssured;
+import io.restassured.http.ContentType;
+
import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
@ExtendWith(SpringExtension.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class)
-@ContextConfiguration(initializers = {KeycloakSpringBootTestResource.class, InfinispanSpringBootTestResource.Conditional.class, KafkaSpringBootTestResource.class})
+@ContextConfiguration(initializers = { KeycloakSpringBootTestResource.class, InfinispanSpringBootTestResource.Conditional.class, KafkaSpringBootTestResource.class })
public class ApprovalsRestIT {
@LocalServerPort
diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml
index be2cacf49..5a90b9ba4 100644
--- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml
+++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml
@@ -60,8 +60,8 @@
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
- <groupId>org.springframework.security</groupId>
- <artifactId>spring-security-oauth2-authorization-server</artifactId>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency>
<!-- kogito -->
diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/ApprovalsRestIT.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/ApprovalsRestIT.java
index b48ff7155..8dcc16f49 100644
--- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/ApprovalsRestIT.java
+++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/ApprovalsRestIT.java
@@ -18,8 +18,6 @@
*/
package org.acme.travels;
-import io.restassured.RestAssured;
-import io.restassured.http.ContentType;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -31,6 +29,9 @@ import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
+import io.restassured.RestAssured;
+import io.restassured.http.ContentType;
+
import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org