Skip to content

Commit

Permalink
Add missing dependency in MP guide
Browse files Browse the repository at this point in the history
  • Loading branch information
tvallin committed Nov 8, 2024
1 parent d6c6d8e commit a1b5701
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion docs/src/main/asciidoc/mp/guides/security-oidc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,12 @@ cd helidon-quickstart-mp
Update the pom.xml file and add the following Helidon dependency to the `<dependencies>` section.
[source,xml]
.Add the following dependency to `pom.xml`:
.Add the following dependencies to `pom.xml`:
----
<dependency>
<groupId>io.helidon.microprofile</groupId>
<artifactId>helidon-microprofile-security</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.microprofile</groupId>
<artifactId>helidon-microprofile-oidc</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}
Expand All @@ -51,7 +51,7 @@ String getMessage() {
@Authenticated
@GET
@Produces(MediaType.APPLICATION_JSON)
public GreetingMessage getDefaultMessage() {
public Message getDefaultMessage() {
return createResponse("World");
}
// end::snippet_1[]
Expand All @@ -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)
Expand Down

0 comments on commit a1b5701

Please sign in to comment.