Questions about OAuth2 and OIDC

The authorization code grant type is used to authenticate users with the classic OAuth2 flow.

The client credentials grant type is the simplified authentication flow. It is normally used to authenticate systems such as external services or applications.