Client credentials flow in OAuth 2.0 is generally used for authenticating the service rather than the user. This grant_flow is used for machine-to-machine communication.
In this grant flow, the client registers itself with the OAuth 2.0 compliant authorization server. In return, the OAuth 2.0 compliant authorization server provides it with client_id and client_secret.