Azure Functions Middleware - Part 4 - Quick Check
This is Part 4 in series and probably the last part related to Middleware. From Part 1 to Part 3 I have shared implementation detail and explain few things around that.
Now how you can quickly check that part. Probably any tool can be used to test REST API. Most popular one this is Postman and recently REST Client with VS Code also making buzz. I am going to use REST Client but I am no way directly associated with it.
Simple call without bearer token.
Click on send request. It get following response. (Status code : 401)
Simple call with bearer token with invalid role.
Click on send request. It get following response. (Status code : 403)
Simple call with bearer token with admin role token.
Click on send request. It get following response. (Status code : 200)
Hope it helps.