Now we will work out a practical example for both grants covered in this chapter.
Due to the fact that these two grants are less popular and are suitable for less use cases and scenarios, compared to the authorization code grant and the client credentials grant, they can be found in fewer cases.
One of the service providers that uses OAuth 2.0 for authorization of its API and supports these two grants is Zendesk , a cloud-based customer service software solution. Among other services, they also offer an API on which client applications can be made and have implemented all four grants defined in the OAuth 2.0 specification.
We will create an example web application that will use Zendesk as its authorization server. It will contain ...