简体   繁体   English

此请求的授权已被拒绝。 邮差

[英]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.

相关问题 此请求已被拒绝授权。 总是 - Authorization has been denied for this request. Always “消息”:“此请求已拒绝授权。”OWIN中间件 - “Message”: “Authorization has been denied for this request.” OWIN middleware 始终获得“此请求已被拒绝授权。”消息 - Always getting the “Authorization has been denied for this request.” message 始终使用身份2中的不记名令牌获得“对此请求的授权已被拒绝”。 - Always get “Authorization has been denied for this request.” using Bearer tokens in Identity 2? 发送承载令牌时,API端点返回“此请求已拒绝授权。” - API end point returning “Authorization has been denied for this request.” when sending bearer token 如何修改“此请求的授权已被拒绝。”使用过滤器HostAuthenticationFilter - How to Modify “Authorization has been denied for this request.” Using filter HostAuthenticationFilter Azure AD 带有用于 Web API 的不记名令牌身份验证的 AD 无法正常工作,抛出错误,因为“此请求的授权已被拒绝”。 - Azure AD with Bearer token authentication for Web API not working throwing error as “Authorization has been denied for this request.” 此请求的C#授权被拒绝 - C# Authorization has been denied for this request OAuth令牌授权(请求已被拒绝) - OAuth token authorization (request has been denied) httpclient令牌对此请求的授权已被拒绝 - httpclient token Authorization has been denied for this request
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM