'Update the settings for a SAML-based third party auth provider'

def configure_saml_provider(self, **kwargs):

    self.assertTrue(SAMLConfiguration.is_enabled(Site.objects.get_current()), 'SAML    Provider    Configuration    only    works    if    SAML    is    enabled.')
    obj = SAMLProviderConfig(**kwargs)
    obj.save()
    return obj
