ASP.NET Web API Authorization with Postman
<p>I have created an <strong>ASP.NET Web API</strong> and applied Authorize attribute to the API controller. Now, I want to test it using Postman but I am getting Authorization error.</p>
<p>Controller code is:</p>
<pre><code>[Authorize]
[HttpPost]
public IHttpActionResult Attend([FromBody] int gigId)
{
    var attendance = new Attdendance
    {
        GigId =  gigId,
        AttendeeId = User.Identity.GetUserId()
    };

    _context.Attdendances.Add(attendance);
    _context.SaveChanges();
    return Ok();
}
</code></pre>
<p>My request looks like this <a href="http://prntscr.com/c8wz0b" rel="nofollow noreferrer">http://prntscr.com/c8wz0b</a></p>
<p>I am using this advance Postman rest client <a href="http://prntscr.com/c8xafd" rel="nofollow noreferrer">http://prntscr.com/c8xafd</a></p>
<p>How do I pass authorization in Postman?</p>