OAuth 2 roles

OAuth 2 defines four roles:

It should be noted that the resource server and the authorization server can be the same server, but for larger applications they are commonly separate servers.