Skip to content

Commit 9ce82b3

Browse files
committed
fixing links in the handler/csrf doc
Signed-off-by: Lewis Birks <22620804+lewisbirks@users.noreply.github.com>
1 parent ff866ba commit 9ce82b3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/asciidoc/handlers/csrf.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== CsrfHandler
22

3-
The javadoc:CsrfHandler[text="Cross Site Request Forgery Handler"] helps to protect from (CSRF)
3+
The javadoc:handler.CsrfHandler[text="Cross Site Request Forgery Handler"] helps to protect from (CSRF)
44
attacks. Cross-site request forgeries are a type of malicious exploit whereby unauthorized commands
55
are performed on behalf of an authenticated user.
66

@@ -20,10 +20,10 @@ field in the form so that the CSRF protection middleware can validate the reques
2020
</form>
2121
----
2222

23-
The `csrf` is a request attribute created by the javadoc:CsrfHandler[] handler and rendered by a
23+
The `csrf` is a request attribute created by the javadoc:handler.CsrfHandler[] handler and rendered by a
2424
template engine. Here `{{csrf}}` we use Handlebars template engine (as example).
2525

26-
The javadoc:CsrfHandler[] handler, will automatically verify that the token in the request input
26+
The javadoc:handler.CsrfHandler[] handler, will automatically verify that the token in the request input
2727
matches the token stored in the session.
2828

2929
The token defaults name is `csrf` and can be provided as:
@@ -34,5 +34,5 @@ The token defaults name is `csrf` and can be provided as:
3434
3535
Configuration methods:
3636

37-
- javadoc:CsrfHandler["setTokenGenerator", java.util.Function]: Set a custom token generator. Defaults uses a random UUID.
38-
- javadoc:CsrfHandler["setRequestFilter", java.util.Predicate]: Set a custom request filter. Defaults is to process `POST`, `PUT`, `PATCH` and `DELETE`.
37+
- javadoc:handler.CsrfHandler["setTokenGenerator", java.util.function.Function]: Set a custom token generator. Defaults uses a random UUID.
38+
- javadoc:handler.CsrfHandler["setRequestFilter", java.util.function.Predicate]: Set a custom request filter. Defaults is to process `POST`, `PUT`, `PATCH` and `DELETE`.

0 commit comments

Comments
 (0)