diff --git a/docs/src/main/asciidoc/mp/guides/security-oidc.adoc b/docs/src/main/asciidoc/mp/guides/security-oidc.adoc index 94080f6cd90..05f66ab88bf 100644 --- a/docs/src/main/asciidoc/mp/guides/security-oidc.adoc +++ b/docs/src/main/asciidoc/mp/guides/security-oidc.adoc @@ -233,8 +233,12 @@ cd helidon-quickstart-mp Update the pom.xml file and add the following Helidon dependency to the `` section. [source,xml] -.Add the following dependency to `pom.xml`: +.Add the following dependencies to `pom.xml`: ---- + + io.helidon.microprofile + helidon-microprofile-security + io.helidon.microprofile helidon-microprofile-oidc diff --git a/docs/src/main/java/io/helidon/docs/mp/guides/SecurityOidcSnippets.java b/docs/src/main/java/io/helidon/docs/mp/guides/SecurityOidcSnippets.java index b89a416b22d..2bf804f8ad4 100644 --- a/docs/src/main/java/io/helidon/docs/mp/guides/SecurityOidcSnippets.java +++ b/docs/src/main/java/io/helidon/docs/mp/guides/SecurityOidcSnippets.java @@ -36,12 +36,12 @@ class SecurityOidcSnippets { // stub - static GreetingMessage createResponse(String str) { + static Message createResponse(String str) { return null; } // stub - record GreetingMessage() { + record Message() { String getMessage() { return ""; } @@ -51,7 +51,7 @@ String getMessage() { @Authenticated @GET @Produces(MediaType.APPLICATION_JSON) - public GreetingMessage getDefaultMessage() { + public Message getDefaultMessage() { return createResponse("World"); } // end::snippet_1[] @@ -76,7 +76,7 @@ void snippet_5(WebTarget target) { void snippet_6(WebTarget target) { // tag::snippet_4[] String encoding = Base64.getEncoder().encodeToString("jack:changeit".getBytes()); - GreetingMessage jsonMessage = target + Message jsonMessage = target .path("greet") .request() .header(HttpHeaders.AUTHORIZATION, "Basic " + encoding)