Skip to content

Commit a1b5701

Browse files
committed
Add missing dependency in MP guide
1 parent d6c6d8e commit a1b5701

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

docs/src/main/asciidoc/mp/guides/security-oidc.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,12 @@ cd helidon-quickstart-mp
233233
Update the pom.xml file and add the following Helidon dependency to the `<dependencies>` section.
234234
235235
[source,xml]
236-
.Add the following dependency to `pom.xml`:
236+
.Add the following dependencies to `pom.xml`:
237237
----
238+
<dependency>
239+
<groupId>io.helidon.microprofile</groupId>
240+
<artifactId>helidon-microprofile-security</artifactId>
241+
</dependency>
238242
<dependency>
239243
<groupId>io.helidon.microprofile</groupId>
240244
<artifactId>helidon-microprofile-oidc</artifactId>

docs/src/main/java/io/helidon/docs/mp/guides/SecurityOidcSnippets.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
class SecurityOidcSnippets {
3737

3838
// stub
39-
static GreetingMessage createResponse(String str) {
39+
static Message createResponse(String str) {
4040
return null;
4141
}
4242

4343
// stub
44-
record GreetingMessage() {
44+
record Message() {
4545
String getMessage() {
4646
return "";
4747
}
@@ -51,7 +51,7 @@ String getMessage() {
5151
@Authenticated
5252
@GET
5353
@Produces(MediaType.APPLICATION_JSON)
54-
public GreetingMessage getDefaultMessage() {
54+
public Message getDefaultMessage() {
5555
return createResponse("World");
5656
}
5757
// end::snippet_1[]
@@ -76,7 +76,7 @@ void snippet_5(WebTarget target) {
7676
void snippet_6(WebTarget target) {
7777
// tag::snippet_4[]
7878
String encoding = Base64.getEncoder().encodeToString("jack:changeit".getBytes());
79-
GreetingMessage jsonMessage = target
79+
Message jsonMessage = target
8080
.path("greet")
8181
.request()
8282
.header(HttpHeaders.AUTHORIZATION, "Basic " + encoding)

0 commit comments

Comments
 (0)