Disable identity provider modules that fail to load

This function disables any enabled identity provider modules that fail to load.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/disable_failing_authentication_providers
Request samples
whmapi1 --output=jsonpretty \
  disable_failing_authentication_providers
Response samples
application/json
{
  • "data": {
    • "payload": [
      • {
        • "disabled_services": [
          • "cpaneld",
          • "webmaild"
          ],
        • "failures_to_disable": [
          • {
            • "failure": "An informative failure message.",
            • "service_name": "whostmgrd"
            }
          ],
        • "provider_failure": "(ERR mcddbv) The system failed to load the module “Cpanel::Security::Authn::Provider::Facebook“ because of an error: Can't locate Cpanel/Security/Authn/Provider/Facebook.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/514/lib/perl5/cpanel_lib/i386-linux-64int /usr/local/cpanel/3rdparty/perl/514/lib/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/514/lib/perl5/5.14.4/i386-linux-64int /usr/local/cpanel/3rdparty/perl/514/lib/perl5/5.14.4 /opt/cpanel/perl5/514/site_lib/i386-linux-64int /opt/cpanel/perl5/514/site_lib /var/cpanel/perl) at (eval 143) line 1.\nBEGIN failed--compilation aborted at (eval 143) line 1.\n",
        • "provider_name": "facebook",
        • "provider_namespace": "Cpanel::Security::Authn::Provider::Facebook"
        }
      ]
    },
  • "metadata": {
    • "command": "disable_failing_authentication_providers",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}