Send Client ID and Secret in Basic Auth header for custom Social Connections

How can Client ID and Secret be sent as a Basic Auth header for custom Social Connections?

You can use custom headers (Connect Apps to Generic OAuth2 Authorization Servers) and build the Basic header