问题
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?
回答1:
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
回答2:
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).
来源:https://stackoverflow.com/questions/53599567/how-to-configure-wso2-api-manager-2-1-0-to-work-with-identity-server-5-3-0