My team is using Azure AD to authenticate the user and is sending the ID token generated to all WEB API calls. I want to test the WEB API separately and for that, I want to generate the ID Token from Azure AD using the Postman. I have the username and password of the user. What is the best way to implement that?
I don't want to go for service principal as it doesn't satisfy our claims needs.
In this case you would need to setup the "Password Credentials" OAuth Grant type. Prior to Postman, Azure AD should be configured as detailed here: https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth-ropc
Postman configuration to generate the Access Token is as shown in the screenshot: