Currently, client credentials grant type is not supported by custom connectors.
https://learn.microsoft.com/en-us/connectors/custom-connectors/connection-parameters