简体   繁体   中英

Authorization has been denied for this request. Postman

New to Owin authorization and currently exploring.

I can now successfully get the token from the token host 在此处输入图片说明

I now try to access a controller with the [Authorize] attribute but seem to be getting a Authorization has been denied for this request issue. 在此处输入图片说明

在此处输入图片说明

I used the returned token as a bearer token but doesnt seem to work in post man. Any help would be appreciated.

Thanks

Shoot it was just a matter of order in the Startup.cs

I created called ConfigureAuth after WebApiConfig.Register(config); @.@

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM