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
… returns Optionals.
In case no Authentication was present, SpringSecurityAuthenticationManager returned null which is invalid for methods returning Optional. We now return Optional.empty().
Some cleanups in PersistentUserAccountManager, use of lambdas in SpringSecurityAuthenticationManager. Introduced UserAccount.getUsername() to avoid leaking internals via the identifier.
… returns Optionals.
In case no Authentication was present, SpringSecurityAuthenticationManager returned null which is invalid for methods returning Optional. We now return Optional.empty().
Some cleanups in PersistentUserAccountManager, use of lambdas in SpringSecurityAuthenticationManager. Introduced UserAccount.getUsername() to avoid leaking internals via the identifier.
odrotbohm
changed the title
SpringSecurityAuthenticationManager#getCurrentUser wrong return type
SpringSecurityAuthenticationManager should return Optional.empty() if no user is logged in
Dec 18, 2014
Should return Optional.empty(), not null.
The text was updated successfully, but these errors were encountered: