Keep the Spring Security 5 RequestCache querying behavior

MSAL

By default, Spring Security 5 queries the saved request on every request, which means that in a typical setup, the HttpSession is queried on every request to use the RequestCache. In Spring Security 6, the default behavior has changed, and RequestCache will only be queried for a cached request if the HTTP parameter continue is defined. To maintain the Spring Security 5 behavior, setMatchingRequestParameterName(null) is called on HttpSessionRequestCache instances assigned to a local variable.

org.openrewrite.java.spring.security6.UpdateRequestCache
mod run . --recipe=org.openrewrite.java.spring.security6.UpdateRequestCache

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.