Skip to content

Add SecurityContextHolderFilter #9635

@rwinch

Description

@rwinch

We should add a SecurityContextHolderFilter that loads the SecurityContext from the request. It will not automatically save the SecurityContext. Using this mechanism requires explicitly saving the SecurityContext rather than just setting the SecurityContextHolder. We also want to consider a simplified API to SecurityContextRepository.loadContext(HttpRequestResponseHolder) so that users do not need to worry about replacing the request/response. Perhaps just adding a default method to SecurityContextRepository.loadContext(HttpServletRequest,HttpServletResponse)

Related gh-9634 gh-10947

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webAn issue in web modules (web, webmvc)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions