production-ready-apis-sample-2.2 icon indicating copy to clipboard operation
production-ready-apis-sample-2.2 copied to clipboard

Always response 403 Forbidden

Open xiaoliwe opened this issue 5 years ago • 1 comments

hi , using delete method to get result under Postman tool , got error message : 403 Forbidden . have captured the more details info as bellow 2019030112_001

not sure i 'm missing mistake .

Thanks

xiaoliwe avatar Mar 01 '19 04:03 xiaoliwe

Try to generate the token with /get-token?admin=true. It looks like you are using a non-admin "read-only" token. If you check this line you'll see that the action method requires the Admin role. Here you can check how JwtTokenGenerator is adding the role claim type if the admin is requested.

miroslavpopovic avatar Mar 02 '19 19:03 miroslavpopovic