Skip to content

Add isFullyAuthenticated to AuthenticatedTrustResolver #11510

@jzheaux

Description

@jzheaux

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

Metadata

Metadata

Labels

in: coreAn issue in spring-security-coretype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions