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

人盡茶涼 提交于 2019-12-02 04:14:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!