private boolean isAuthenticated ( ) { Authentication existingAuth = SecurityContextHolder . getContext ( ) . getAuthentication ( ) ; return ! ( ! ( existingAuth != null && existingAuth . isAuthenticated ( ) ) || existingAuth instanceof SSOAuthentication ) ; }
Do not try to validate JWT if user already authenticated via other provider