Skip to content

AnonymousAuthenticationFilter should cache its Supplier<SecurityContext> #11900

@jzheaux

Description

@jzheaux

The Supplier<SecurityContext> in AnonymousAuthenticationFilter gets invoked several times on each request. Essentially, any time getContext is invoked downstream of it. While each call is quick, it seems a bit wasteful.

One way to cache it would be SingletonSupplier

Metadata

Metadata

Assignees

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