File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
java/io/helidon/docs/mp/guides Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -233,8 +233,12 @@ cd helidon-quickstart-mp
233233Update 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>
Original file line number Diff line number Diff line change 3636class 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 )
You can’t perform that action at this time.
0 commit comments