Software Design

OAuth 2.0 Client Credentials for M2M Auth

UML Sequence Diagrams · made in Skemio

Sequence diagram showing OAuth 2.0 Client Credentials grant between Service A, Auth Server, and Service B.
Sequence diagram showing OAuth 2.0 Client Credentials grant between Service A, Auth Server, and Service B.

What it shows

  • Client exchanges its own credentials directly with the token endpoint.
  • Tokens represent the calling service itself, not an end user.
  • Eliminates redirects, consent screens, and interactive user flows.

The takeaway

Use Client Credentials grant for automated daemon-to-daemon communication where no end user exists.

More uml sequence diagrams