Skip to content

Commit 10f6703

Browse files
ksdev-plgsmet
authored andcommitted
Fix obsolete csrf extension name and configuration in security-csrf-prevention.adoc
(cherry picked from commit 0bb5206)
1 parent cb11e94 commit 10f6703

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/src/main/asciidoc/security-csrf-prevention.adoc

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc
77
include::_attributes.adoc[]
88
:categories: security
99
:topics: security,csrf,http
10-
:extensions: io.quarkus:quarkus-csrf-reactive
10+
:extensions: io.quarkus:quarkus-rest-csrf
1111

1212
https://owasp.org/www-community/attacks/csrf[Cross-Site Request Forgery (CSRF)] is an attack that forces an end user to execute unwanted actions on a web application in which they are currently authenticated.
1313

@@ -24,15 +24,15 @@ First, we need a new project.
2424
Create a new project with the following command:
2525

2626
:create-app-artifact-id: security-csrf-prevention
27-
:create-app-extensions: csrf-reactive
27+
:create-app-extensions: rest-csrf
2828
include::{includes}/devtools/create-app.adoc[]
2929

30-
This command generates a project which imports the `csrf-reactive` extension.
30+
This command generates a project which imports the `rest-csrf` extension.
3131

32-
If you already have your Quarkus project configured, you can add the `csrf-reactive` extension
32+
If you already have your Quarkus project configured, you can add the `rest-csrf` extension
3333
to your project by running the following command in your project base directory:
3434

35-
:add-extension-extensions: csrf-reactive
35+
:add-extension-extensions: rest-csrf
3636
include::{includes}/devtools/extension-add.adoc[]
3737

3838
This will add the following to your build file:
@@ -42,14 +42,14 @@ This will add the following to your build file:
4242
----
4343
<dependency>
4444
<groupId>io.quarkus</groupId>
45-
<artifactId>quarkus-csrf-reactive</artifactId>
45+
<artifactId>quarkus-rest-csrf</artifactId>
4646
</dependency>
4747
----
4848

4949
[source,gradle,role="secondary asciidoc-tabs-target-sync-gradle"]
5050
.build.gradle
5151
----
52-
implementation("io.quarkus:quarkus-csrf-reactive")
52+
implementation("io.quarkus:quarkus-rest-csrf")
5353
----
5454

5555
Next, let's add a `csrfToken.html` Qute template producing an HTML form in the `src/main/resources/templates` folder:

0 commit comments

Comments
 (0)