In this article let's look at configuring the JWT bearer authentication header in the service pipeline by injecting a strongly typed configuration class.
Let's see how we can authorize an API access based on an user role defined by the system or a user based on a claim based on the JWT token passed within the request.
Let's look at a hypothetical scenario, wherein we would want the authentication middleware to completely be bypassed, but yet the user context for the request be setup for us to use at a later point in the request pipeline.