Welcome to the seedstack OAuth addon - Authorization code flow sample !
+Please see The README file for more details about this sample.
+Please, ensure the auth server is running on port 8080.
+For reminder :
+User "John Doe" Password "P4$$word" : This user as granted access to the required scope.
+User "Jane Smith" Password "P4$$word" : Do not grant access to the required scope to view access denied page.
+Welcome to the seedstack OAuth addon - Authorization Code Flow with Proof Key for Code Exchange (PKCE) sample.
+Please see The README file for more details about this sample.
+Please, ensure the auth server is running on port 8080.
+For reminder :
+User "John Doe" Password "P4$$word" : This user as granted access to the required scope.
+User "Jane Smith" Password "P4$$word" : This user does not have the required scope. use it to view access denied page.
+This is automatically served at the root of the Web application.
+ + diff --git a/basics/web/src/test/java/org/seedstack/samples/web/WebIT.java b/basics/servlet/src/test/java/org/seedstack/samples/servlet/WebIT.java similarity index 86% rename from basics/web/src/test/java/org/seedstack/samples/web/WebIT.java rename to basics/servlet/src/test/java/org/seedstack/samples/servlet/WebIT.java index e29c78c..6e0ba03 100644 --- a/basics/web/src/test/java/org/seedstack/samples/web/WebIT.java +++ b/basics/servlet/src/test/java/org/seedstack/samples/servlet/WebIT.java @@ -6,7 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -package org.seedstack.samples.web; +package org.seedstack.samples.servlet; import static io.restassured.RestAssured.expect; @@ -20,7 +20,7 @@ @RunWith(JUnit4Runner.class) @LaunchWithUndertow public class WebIT { - @Configuration("web.runtime.baseUrl") + @Configuration("runtime.web.baseUrl") private String baseUrl; @Test @@ -29,6 +29,6 @@ public void testServlet() { .statusCode(200) .body(Matchers.equalTo("Hello World from web-sample!")) .when() - .get(baseUrl + "my-servlet?name=World"); + .get(baseUrl + "/my-servlet?name=World"); } } diff --git a/basics/web/src/test/resources/application.yaml b/basics/servlet/src/test/resources/application.yaml similarity index 97% rename from basics/web/src/test/resources/application.yaml rename to basics/servlet/src/test/resources/application.yaml index c36b290..7d0b752 100644 --- a/basics/web/src/test/resources/application.yaml +++ b/basics/servlet/src/test/resources/application.yaml @@ -1,10 +1,10 @@ -# -# Copyright © 2013-2018, The SeedStack authors