How to use Postman to test ASP NET Core Web API secured with JWT Token authentication

Dipesh Shah
2 min readMay 14, 2021

I came across a use case to test ASP NET Core Web API secured with JWT (JSON Web Token) authentication using Postman. In order to test the api, we need to first retrieve the authentication token from token authority (in my case it was Azure AD) and then use the retrieved token while initiating actual web api requests.

Pre-requisites:

Azure AD Tenant Id — you can get it from Tenant properties

--

--

Dipesh Shah

Enterprise Cloud Solution Architect, DevOps Lead, Learner