protected boolean isAuthenticationAttemptTheSame(final Authentication currentAuthentication,
                                                     final Authentication previousAuthentication) {
        if (currentAuthentication.isEqualTo(previousAuthentication)) {
            LOGGER.debug("Resulting authentication matches the authentication from context");
            return false;
        }
        LOGGER.debug("Resulting authentication is different from the context");
        return true;
    }
This is {@link DefaultSingleSignOnBuildingStrategy}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/DefaultSingleSignOnBuildingStrategy.java