ASP.NET Web API Authorization with Postman

前端 未结 3 1214
小鲜肉
小鲜肉 2021-02-04 14:26

I have created an ASP.NET Web API and applied Authorize attribute to the API controller. Now, I want to test it using Postman but I am getting Authorization error.

Contr

3条回答
  •  爱一瞬间的悲伤
    2021-02-04 14:54

    For Postman Windows App 4.6.0:

    1. Select your request from your request collection
    2. Go to the "Authorization" tab
    3. Choose an appropriate "Type", e.g. "Basic Auth"
    4. Enter "Username" and "Password"
    5. Click "Update Request"

提交回复
热议问题