[英]Authorization has been denied for this request. Postman
New to Owin authorization and currently exploring. Owin授权的新手,目前正在探索中。
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. 我现在尝试使用[Authorize]属性访问控制器,但似乎由于该请求问题而拒绝了授权。
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 在Startup.cs中拍摄只是顺序问题
I created called ConfigureAuth after WebApiConfig.Register(config); 我在WebApiConfig.Register(config)之后创建了一个名为ConfigureAuth的文件。 @.@
@。@
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.