A .NET Web Api 2 Controller to generate AzureAD access token for Power BI integration
- Directly copy this controller to Controllers directory of your project and get the dependencies.
- Then fetch or harcode your credentials to generate AzureAD access token and get your detailed access token from /getToken endpoint of your web api.