diff --git a/testing-modules/rest-assured/pom.xml b/testing-modules/rest-assured/pom.xml
index cd342ccd11..c528a34e21 100644
--- a/testing-modules/rest-assured/pom.xml
+++ b/testing-modules/rest-assured/pom.xml
@@ -162,6 +162,11 @@
commons-collections
${commons-collections.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-security
+
@@ -179,6 +184,12 @@
json-schema-validator
test
+
+ com.github.scribejava
+ scribejava-apis
+ ${scribejava.version}
+ test
+
@@ -211,6 +222,8 @@
3.0.1
3.0.1
+
+ 2.5.3
diff --git a/testing-modules/rest-assured/src/test/java/com/baeldung/restassured/authentication/BasicAuthenticationLiveTest.java b/testing-modules/rest-assured/src/test/java/com/baeldung/restassured/authentication/BasicAuthenticationLiveTest.java
new file mode 100644
index 0000000000..aff765dfa3
--- /dev/null
+++ b/testing-modules/rest-assured/src/test/java/com/baeldung/restassured/authentication/BasicAuthenticationLiveTest.java
@@ -0,0 +1,38 @@
+package com.baeldung.restassured.authentication;
+
+import static io.restassured.RestAssured.get;
+import static io.restassured.RestAssured.given;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.http.HttpStatus;
+
+/**
+ * For this Live Test we need:
+ * * a running instance of the service located in the spring-security-rest-basic-auth module.
+ * @see spring-security-rest-basic-auth module
+ *
+ */
+public class BasicAuthenticationLiveTest {
+
+ private static final String USER = "user1";
+ private static final String PASSWORD = "user1Pass";
+ private static final String SVC_URL = "http://localhost:8080/spring-security-rest-basic-auth/api/foos/1";
+
+ @Test
+ public void givenNoAuthentication_whenRequestSecuredResource_thenUnauthorizedResponse() {
+ get(SVC_URL).then()
+ .assertThat()
+ .statusCode(HttpStatus.UNAUTHORIZED.value());
+ }
+
+ @Test
+ public void givenBasicAuthentication_whenRequestSecuredResource_thenResourceRetrieved() {
+ given().auth()
+ .basic(USER, PASSWORD)
+ .when()
+ .get(SVC_URL)
+ .then()
+ .assertThat()
+ .statusCode(HttpStatus.OK.value());
+ }
+}
diff --git a/testing-modules/rest-assured/src/test/java/com/baeldung/restassured/authentication/BasicPreemtiveAuthenticationLiveTest.java b/testing-modules/rest-assured/src/test/java/com/baeldung/restassured/authentication/BasicPreemtiveAuthenticationLiveTest.java
new file mode 100644
index 0000000000..02138f22e3
--- /dev/null
+++ b/testing-modules/rest-assured/src/test/java/com/baeldung/restassured/authentication/BasicPreemtiveAuthenticationLiveTest.java
@@ -0,0 +1,56 @@
+package com.baeldung.restassured.authentication;
+
+import static io.restassured.RestAssured.get;
+import static io.restassured.RestAssured.given;
+import static org.hamcrest.Matchers.containsString;
+import static org.hamcrest.Matchers.is;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.http.HttpStatus;
+
+/**
+ * For this Live Test we need:
+ * * a running instance of the service located in the spring-boot-admin/spring-boot-admin-server module.
+ * @see spring-boot-admin/spring-boot-admin-server module
+ *
+ */
+public class BasicPreemtiveAuthenticationLiveTest {
+
+ private static final String USER = "admin";
+ private static final String PASSWORD = "admin";
+ private static final String SVC_URL = "http://localhost:8080/api/applications/";
+
+ @Test
+ public void givenNoAuthentication_whenRequestSecuredResource_thenUnauthorizedResponse() {
+ get(SVC_URL).then()
+ .assertThat()
+ .statusCode(HttpStatus.OK.value())
+ .content(containsString("