HTTP status for remote endpoint: 0 means that Moodle is not getting a response to its request to the OAuth 2 endpoint.
If there's no response then possibly Moodle can't actually make the HTTP request, it may be blocked by SELinux or a firewall.
(The OAuth 2 endpoint is the URL for the OAuth 2 function Moodle is trying to perform as listed under Configure endpoints for the service).