On behalf of flow with Custom Connectors for MS Flow

I have always been fascinated by different authentication mechanisms that Microsoft provides and recently when a colleague of mine was working on a custom connector, I got to assist her with setting up On-behalf of Flow authentication. Custom Connectors are kind of actions provided by 3rd parties that users can use in Microsoft Flows. First of all you need to create a Web API, that will perform the action when someone uses the custom connector. You will need to host this Web API on Azure and create an AAD application that will register the Web API. You will also need create an AAD app that will register the custom connector. You will also need to establish communication between Web API AAD app and Custom Connector AAD App. Steps for this can be found here, https://hiralpatel-sharepointdevelope.blogspot.com/2019/03/steps-to-create-custom-connector-for.html Basically, here, our client is our custom connector, which communicates with the AAD app hosted on azure to acquire a ac...