Skip to content

Commit 05cf659

Browse files
committed
Sync documentation of main branch
1 parent f0085bd commit 05cf659

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

_generated-doc/main/infra/quarkus-all-build-items.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6700,6 +6700,10 @@ _No Javadoc found_
67006700

67016701
_No Javadoc found_
67026702

6703+
`org.jboss.jandex.MethodInfo targetMethodInfo`
6704+
6705+
_No Javadoc found_
6706+
67036707

67046708
|===
67056709
== OpenTelemetry

_versions/main/guides/security-csrf-prevention.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ directly embedded in a hidden form input of server-side rendered HTML forms, or
1818

1919
The extension consists of a xref:rest.adoc[Quarkus REST (formerly RESTEasy Reactive)] server filter which creates and verifies CSRF tokens in `application/x-www-form-urlencoded` and `multipart/form-data` forms and a Qute HTML form parameter provider which supports the xref:qute-reference.adoc#injecting-beans-directly-in-templates[injection of CSRF tokens in Qute templates].
2020

21+
The CSRF prevention filter applies to requests using HTTP `POST`, `PUT`, `PATCH`, `DELETE` and other methods that can change the REST application state.
22+
2123
== Creating the Project
2224

2325
First, we need a new project.

_versions/main/guides/security-openid-connect-client-reference.adoc

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,29 @@ public interface ProtectedResourceService {
13911391

13921392
or
13931393

1394+
[source,java]
1395+
----
1396+
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
1397+
import io.quarkus.oidc.token.propagation.common.AccessToken;
1398+
import jakarta.ws.rs.GET;
1399+
import jakarta.ws.rs.Path;
1400+
1401+
@RegisterRestClient
1402+
@Path("/")
1403+
public interface InformationService {
1404+
1405+
@AccessToken
1406+
@GET
1407+
String getUserName();
1408+
1409+
@Path("/public")
1410+
@GET
1411+
String getPublicInformation();
1412+
}
1413+
----
1414+
1415+
or
1416+
13941417
[source,java]
13951418
----
13961419
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
@@ -1482,6 +1505,30 @@ public interface ProtectedResourceService {
14821505
String getUserName();
14831506
}
14841507
----
1508+
1509+
or
1510+
1511+
[source,java]
1512+
----
1513+
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
1514+
import io.quarkus.oidc.token.propagation.common.AccessToken;
1515+
import jakarta.ws.rs.GET;
1516+
import jakarta.ws.rs.Path;
1517+
1518+
@RegisterRestClient
1519+
@Path("/")
1520+
public interface InformationService {
1521+
1522+
@AccessToken
1523+
@GET
1524+
String getUserName();
1525+
1526+
@Path("/public")
1527+
@GET
1528+
String getPublicInformation();
1529+
}
1530+
----
1531+
14851532
or
14861533

14871534
[source,java]

0 commit comments

Comments
 (0)