ExternalAuthentication
5 functions, invoked through the cpanel_uapi tool.
cpanel_uapi(service_id, module="ExternalAuthentication", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.add_authn_link GET#
Add external authentication link
This function adds an External Authentication authorization link to an account.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Payload varies by call.
configured_modules GET#
Return server's external authentication providers
This function lists the display information for your server's available and configured external authentication identity provider modules.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data is an array of:
get_authn_links GET#
Return external authentication links
This function lists the external authentication links to the current cPanel account.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data is an array of:
has_external_auth_modules_configured GET#
Return external authentication user status
This function determines whether the user enabled external authentication modules.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Whether the cPanel user enabled any external modules. 1 - Enabled. 0 - Not enabled. Note: For more information, read our Password and Security and External Authentication FAQ documentation.
remove_authn_link GET#
Remove external authentication link
This function removes a link to an account at an external authentication identity provider.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
Payload varies by call.