def METHOD_NAME(self, provider, auth_url):
    short_error_message = _(
        'Refused to update provider {provider_name}: '
        'Unexpected authentication URL.'
    ).format(provider_name=provider.name)
    long_error_message = _(
        'Refused to update provider {provider_name}. '
        'The authentication URL of has changed unexpectedly from '
        '"{invalid_auth_url}" to "{auth_url}".'
    ).format(
        provider_name=provider.name,
        invalid_auth_url=provider.invalid_auth_url,
        auth_url=auth_url,
    )
    self.dialog.note(
        text=long_error_message
    )
    raise RuntimeError(short_error_message)