2
votes

I made the whole configuration of this link:

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

and now I get this error when I make a request for my 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>

Can anybody help me?

3

3 Answers

2
votes

According to the error code and message, it is due to accessing an unsubscribed resource. This blog explains more. Make sure the user subscribed to the resource

0
votes

This error is due to not having a subscription for the API you are trying to invoke. You need to subscribe to the API before invoking it. You can follow https://docs.wso2.com/display/AM210/Quick+Start+Guide#QuickStartGuide-InvokingyourfirstAPI to see how to subscribe and invoke an API.

Also make sure to invoke by giving the correct access token (the access token of the application you used to subscribe for the API).

0
votes

If you are getting the same error even after having a valid subscription for the API, check whether Advance Throttling is enabled from IS (IS-AS-KM). If so you have to disable it. You can do it by editing <IS_HOME>/repository/conf/api-manager.xml as follows;

<ThrottlingConfigurations>
        <EnableAdvanceThrottling>false</EnableAdvanceThrottling>
        ...
</ThrottlingConfigurations>