Try to use KeycloakAuthenticationService as alternative.