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
Spring Security can be configured as STATELESS, which prevents Authentication tokens from being persisted across the board.
Introducing an annotation would make so that specific Authentication types could be considered stateless without needing to mark the entire application as stateless:
This commit introduces support for transient authentication tokens
which indicate to the filter chain, specifically the
HttpSessionSecurityContextRepository, whether or not the token ought
to be persisted across requests.
To leverage this, simply annotate any Authentication implementation
with @TransientAuthentication, extend from an Authentication that uses
this annotation, or annotate a custom annotation.
Implementations of SecurityContextRepository may choose to not persist
tokens that are marked with @TransientAuthentication in the same way
that HttpSessionSecurityContextRepository does.
Fixes: spring-projectsgh-5481
It is quite likely we will need to prevent certain Exceptions from being
saved or from triggering a saved request. When we add support for this,
we can now leverage @transient vs creating a new annotation.
Issue: gh-5481
It is quite likely we will need to prevent certain Exceptions from being
saved or from triggering a saved request. When we add support for this,
we can now leverage @transient vs creating a new annotation.
Issue: gh-5481
Spring Security can be configured as
STATELESS
, which preventsAuthentication
tokens from being persisted across the board.Introducing an annotation would make so that specific
Authentication
types could be considered stateless without needing to mark the entire application as stateless:With the above marker,
HttpSessionSecurityContextRepository
would ignore this token instead of storing it in the session.Ensure that this annotation works as a meta-annotation as well as an inherited annotation.
The text was updated successfully, but these errors were encountered: