如何将WSO2 API Manager 2.1.0配置为与Identity Server 5.3.0一起使用

时间:2018-12-03 18:18:06

标签: wso2 wso2is wso2-am

我完成了此链接的整个配置:

https://docs.wso2.com/display/AM210/Configuring+WSO2+Identity+Server+as+a+Key+Manager

现在我向我的API提出请求时会收到此错误:

<ams:fault xmlns:ams="http://wso2.org/apimanager/security">
    <ams:code>900908</ams:code>
    <ams:message>Resource forbidden </ams:message>
    <ams:description>Access failure for API: /test/1.0.0, version: 1.0.0 status: (900908) - Resource forbidden </ams:description>
</ams:fault>

有人可以帮助我吗?

3 个答案:

答案 0 :(得分:2)

根据error code and message,这是由于访问了未订阅的资源。 This博客介绍了更多信息。确保用户已订阅资源

答案 1 :(得分:0)

此错误是由于没有订阅您要调用的API。您需要先订阅API,然后才能调用它。您可以按照https://docs.wso2.com/display/AM210/Quick+Start+Guide#QuickStartGuide-InvokingyourfirstAPI来了解如何订阅和调用API。

还要确保通过提供正确的访问令牌(用于订阅API的应用程序的访问令牌)进行调用。

答案 2 :(得分:0)

如果即使订阅了有效的API后仍然遇到相同的错误,请检查是否已从IS(IS-AS-KM)启用Advance Throttling。如果是这样,您必须禁用它。 您可以按照以下步骤编辑<IS_HOME>/repository/conf/api-manager.xml来做到这一点;

<ThrottlingConfigurations>
        <EnableAdvanceThrottling>false</EnableAdvanceThrottling>
        ...
</ThrottlingConfigurations>
相关问题