Identity & Access Management: Cookie security#3310
Identity & Access Management: Cookie security#3310velkymx merged 4 commits intoProcessMaker:developfrom
Conversation
|
Can you provide a test for this functionality? |
Here's a test for the cookie flags: Should return a similar output: To test expire_on_close , it's a manual test - login to the application, close the browser, open the browser again (with "recently closed" tab), and the session should be terminated (without the need of deleting browser cache/cookies). I've successfully tested this in the latest chromium build (got redirected to login). |
|
@gustavo-romero since this is in your personal repository, I can not add a unit test. Please add the following to tests/Feature/SessionTest.php Because these settings effect how the browser handles cookies, and we do not currently run browser tests, the best we can do it check that they are correctly being set in the header. |
Thanks @nolanpro, it's done. |
Proposal to set the following session cookie security best practices for session management as a default: