spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

Add isFullyAuthenticated to AuthenticatedTrustResolver

Open jzheaux opened this issue 2 years ago • 2 comments

Since isFullyAuthenticated is a composition of isAnonymous and isRememberMe, a default convenience method can be added:

default boolean isFullyAuthenticated(Authentication authentication) {
    return !isAnonymous(authentication) && !isRememberMe(authentication)
}

This would be nice for SecurityExpressionRoot#isFullyAuthenticated and AuthenticatedAuthorizationManager#fullyAuthenticated

jzheaux avatar Jul 14 '22 17:07 jzheaux

Can i work on this implementation ?

karthikeyan-r avatar Jul 22 '22 19:07 karthikeyan-r

Yep! The issue is yours.

jzheaux avatar Jul 22 '22 21:07 jzheaux