When building API-based web applications in the cloud, there are two main types of communication flow in which identity is…