Authentication is now working again for both sso and x509