Skip to content

Conversation

kumo829
Copy link
Contributor

@kumo829 kumo829 commented Nov 18, 2022

Add a customizer to CookieCsrfTokenRepository and CookieServerCsrfTokenRepository

  • Mark setCookieHttpOnly, setCookieDomain, setCookieMaxAge and setSecure as deprecated.
  • Add the method setCookieCustomizer which allows to set properties to the ResponseCookieBuilder without having to add new setter methods.

Closes gh-12086

…enRepository

- Mark setCookieHttpOnly, setCookieDomain, setCookieMaxAge and setSecure as deprecated.
- Add the method setCookieCustomizer which allows to set properties to the ResponseCookieBuilder without having to add new setter methods.

Closes spring-projectsgh-12086
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 18, 2022
@jzheaux jzheaux self-assigned this Nov 18, 2022
@jzheaux jzheaux added this to the 6.1.0-M1 milestone Nov 18, 2022
@jzheaux jzheaux added status: duplicate A duplicate of another issue in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 18, 2022
Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, @kumo829! We'll merge after 6.0 releases and we move main to feature development.

@marcusdacoregio
Copy link
Contributor

Merged via b79ba89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to set the SameSite policy in the CookieCsrfTokenRepository
4 participants