Background
I have a ASP.NET core (v2.1) project that contains an API. This API is access restricted by JWT bearer.
My server expose an endpoint for login:
POST http://example.com/api/login
After attaching the token to the request, I can call one of the server methods (GET
or DELETE
:
GET http://example.com/api/1234
or
DELETE http://example.com/api/1234
Target
I want to implement "another type" of token that will allow access only to specific scope
. Let's say that we want to give access just for GET
method. So, if you have this token - you can GET
the resource but not to DELETE
it.
Wondering if this is possible with JWT bearer token? If yes, how?
Thanks!