'Check that SAML is enabled and that the request includes an \'idp\'
parameter before getting the URL to which we must redirect in order to
authenticate the user.
raise Http404 if SAML authentication is disabled.'

def auth_url(self):

    if (not self._config.enabled):
        log.error('SAML    authentication    is    not    enabled')
        raise Http404
    return super(SAMLAuthBackend, self).auth_url()
