Description
Story for an important refactoring of the CSRF guard:
General
- Move https://github.com/Jahia/dummy-csrf-test-module inside the csrf-guard repo, as for every other modules
- Add a couple of cypress tests
- Upgrade the version of CSRFGuard library (i moved this one up to avoid rework)
- Investigate if the module can be configured via OSGi instead of properties file
Improve caching / loading strategy
- Add a new config to activate or deactivate csrf check for guest users. Value by default = deactivated
- Improve the loading strategy / token lifecycle to avoid reloading the script on each page
- Modify CSRF module to include a version number in the Javascript URL
- Change the cache policy to propose an infinite caching (like js in node modules)
Imported from Jira, on Thu Jan 30, 2025
Issue: BACKLOG-23424 in project: DX BACKLOG
Priority: Unspecified Type: Story
Reporter: @romain-pm (Romain Gauthier)
Assignee: None found in Jira, making reporter the assignee in GitHub
Created: Tue Nov 26, 2024, last updated: Fri Nov 29, 2024
Status: Open
Sprint: TTY - Next Week started on Thu Jan 1, 1970
Parent Epic: BACKLOG-23419 - Make Jahia easier to use with a CDN [JIRA] (Delivery)
Metadata
Metadata
Assignees
Labels
No labels