You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than requiring the wrapped request/response we should allow any HttpServletRequest/HttpServletResponse can be used to save the SecurityContext. This will allow for explicit saves vs implicit saves that happen with the response is committed.
The text was updated successfully, but these errors were encountered:
rwinch
changed the title
HttpSecurityContextRepository Can Save Any HttpServletRequest/Response
HttpSessionSecurityContextRepository saves with original response
Mar 9, 2022
Previously, the HttpSessionSecurityContextRepository unnecessarily required
the HttpServletResponse from the HttpReqeustResponseHolder passed into
loadContext. This meant code that wanted to save a SecurityContext had to
have a reference to the original HttpRequestResponseHolder. Often that
implied that the code that saves the SecurityContext must also load the
SecurityContext.
This change allows any request / response to be used to save the
SecurityContext which means any code can save the SecurityContext not just
the code that loaded it. This sets up the code to be permit requiring
explicit saves. Using the request/response from the
HttpRequestResponseHolder is only necessary for implicit saves.
Closesgh-10947
Rather than requiring the wrapped request/response we should allow any
HttpServletRequest
/HttpServletResponse
can be used to save theSecurityContext
. This will allow for explicit saves vs implicit saves that happen with the response is committed.The text was updated successfully, but these errors were encountered: