授权策略评估失败 [英] Failed authorization policy evaluation

查看:126
本文介绍了授权策略评估失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用Azure媒体服务。我有一个带有内容密钥和资产交付政策的编码资产。我也使用令牌限制。

I'm using the Azure Media Services. I have an encoded asset placed there with Content Key and Asset Delivery Policy. I'm also using the Token restriction.


我能够在localhost上很好地传输视频但是只要我将应用程序部署到服务器就停止了流式传输并提供错误代码:0x20500006(Azure Media Player)。

I am able to stream the video well on localhost but as soon as I deployed the application to server it stopped streaming and giving an error code: 0x20500006 (of Azure Media Player).


当我检查了所有请求时,我发现有一个请求Key Delivery服务一些KID并返回以下响应:

When I checked all the requests I found that there is a request to Key Delivery service with some KID and it returned the following response:

<Error>
    <Message>
       Failed authorization policy evaluation.
    </Message>
    <Code>
       Unauthorized
    </Code>
</Error>



我在服务器上使用HTTPS协议也尝试通过HTTP但没有得到任何响应。

I am using the HTTPS protocol on server also tried over HTTP as well but got no response.

推荐答案

嗨Prateek-tech,

Hi Prateek-tech,

看到未经授权的错误可能有不同的原因。可能是由于以下原因之一:

There could be different reasons for seeing the unauthorized error. It may be due to one of the following reasons:

请仔细检查以确保您的令牌未过期。此外,要使Media Services REST请求成功,主叫用户必须是其尝试访问的媒体服务帐户中的贡献者或所有者角色。有关详细信息,请参阅此 documentation  关于
访问控制。

Please double check to make sure your token has not expired. Also, for the Media Services REST request to succeed, the calling user must be a Contributor or Owner role in the Media Services account it is trying to access. For more information, see this documentation about Access control.


这篇关于授权策略评估失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆