-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes issue 6011, adds tests for quarkus.http.auth.form.new-cookie-in…
…terval There are three generally accepted behaviors for timeout and renewal for credential session cookies. 1. [absolute-timeout](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#absolute-timeout) 1. [idle-timeout]( https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#idle-timeout) 1. [renewal-timeout](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#renewal-timeout) Quarkus implements 2. as **timeout** (```quarkus.http.auth.form.timeout```) and 3. as **newCookieInterval** (```quarkus.http.auth.form.new-cookie-interval```). The implementation of 3. does not renew the cookie as expected. The test does login, several requests and uses ```Thread.sleep(...);``` to pace them. I hope this is not deemed problematic for the stability of TS on very slow/weirdly behaving systems. The margins are generous though, in hundreds of ms. The test passes with the fixed calculation of cookie renewal and it fails with the current one: ``` org.opentest4j.AssertionFailedError: Session cookie WAS eligible for renewal and should have been updated. at io.quarkus.vertx.http.security.FormAuthCookiesTestCase. testCredentialCookieRotation(FormAuthCookiesTestCase.java:183) ``` Thank you for feedback. Concatenates log messages, drops level from warn to debug
- Loading branch information
Showing
3 changed files
with
175 additions
and
17 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