'Update the settings for an OAuth2-based third party auth provider'

@staticmethod
def configure_oauth_provider(**kwargs):

    kwargs.setdefault('provider_slug', kwargs['backend_name'])
    obj = OAuth2ProviderConfig(**kwargs)
    obj.save()
    return obj
