How to configure WSO2 API Manager 2.1.0 to work with Identity Server 5.3.0
Asked Answered
E

3

2

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?

Eelpout answered 3/12, 2018 at 18:18 Comment(0)
D
2

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

Devilfish answered 3/12, 2018 at 20:3 Comment(0)
D
0

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).

Densimeter answered 25/12, 2018 at 5:24 Comment(0)
B
0

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>
Borneo answered 16/10, 2020 at 9:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.