-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fde192
commit c2a83d2
Showing
9 changed files
with
242 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
integration-tests/csrf-reactive/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
quarkus.csrf-reactive.cookie-name=csrftoken | ||
quarkus.csrf-reactive.create-token-path=/service/csrfTokenForm,/service/csrfTokenWithFormRead,/service/csrfTokenMultipart | ||
quarkus.csrf-reactive.create-token-path=/service/csrfTokenForm,/service/csrfTokenWithFormRead,/service/csrfTokenMultipart,/service/csrfTokenWithHeader | ||
quarkus.csrf-reactive.token-signature-key=AyM1SysPpbyDfgZld3umj1qzKObwVMkoqQ-EstJQLr_T-1qS0gZH75aKtMN3Yj0iPS4hcgUuTwjAzZr1Z9CAow | ||
quarkus.csrf-reactive.token-header-name=X-CSRF-TOKEN | ||
|
||
quarkus.http.auth.basic=true | ||
quarkus.security.users.embedded.enabled=true | ||
quarkus.security.users.embedded.plain-text=true | ||
quarkus.security.users.embedded.users.alice=alice | ||
quarkus.security.users.embedded.roles.alice=admin | ||
quarkus.security.users.embedded.roles.alice=admin | ||
|
||
quarkus.log.category."io.quarkus.csrf.reactive.runtime.CsrfRequestResponseReactiveFilter".min-level=TRACE | ||
quarkus.log.category."io.quarkus.csrf.reactive.runtime.CsrfRequestResponseReactiveFilter".level=TRACE |
13 changes: 13 additions & 0 deletions
13
integration-tests/csrf-reactive/src/main/resources/templates/csrfTokenHeader.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>CSRF Token Header Test</title> | ||
</head> | ||
<body> | ||
<h1>CSRF Test</h1> | ||
|
||
<input name="{inject:csrf.headerName}" value="{inject:csrf.token}" /> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.