Apple Social Connection Error: "Failed to derive a client_secret from the configured Client Secret Signing Key."

Problem statement

After setting up an Apple Social Connection, the following error is returned when attempting to authenticate:

{
“error”: “server_error”,
“error_description”: “Failed to derive a client_secret from the configured Client Secret Signing Key.”
}

Cause

The Key ID had been improperly configured in the Apple connection settings. The entire key must be pasted in, including the BEGIN/END PRIVATE KEY lines.

Solution

Update Apple connection Key ID with the appropriate value and save settings. If needed, review the ‘Create a Signing Key’ section of the Apple connection documentation here.