小编Mur*_*vel的帖子

应用程序用户令牌在WSO2 API管理器中给出了资源禁止错误

我已使用以下链接将wso2身份服务器配置为wso2 api管理器的密钥管理器。1个

我已经通过wso2 api管理器发布者创建了api,并且已将auth类型指定为Application&Application user

当我通过应用程序令牌调用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: /t/dev-peakhealth.com/dev-api/1.0, version: 1.0</ams:description>
    </ams:fault>
Run Code Online (Sandbox Code Playgroud)

API管理器日志:

    TID: [3] [] [2016-06-13 19:18:07,074] @dev-peakhealth.com [3] [AM]DEBUG {org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler} -  Call to API gateway : API call failed reason=API_authentication_failure userName=test@dev-peakhealth.com transactionId=urn:uuid:63675ed0-1b95-4a06-9b2c-b3f7ad3daa18 with userAgent=curl/7.35.0 with accessToken=Bearer ca8569957cf1fb5d58f5b70d9649d982 for requestURI=/t/dev-peakhealth.com/dev-api/1.0/careplans at time=Mon Jun 13 19:18:07 IST 2016 from clientIP=192.168.4.31, elapsedTimeInMilliseconds=0 {org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler}
TID: [3] [] [2016-06-13 19:18:07,074] @dev-peakhealth.com [3] [AM] WARN {org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler} -  API authentication failure due to Resource forbidden …
Run Code Online (Sandbox Code Playgroud)

wso2 wso2is wso2-api-manager

5
推荐指数
1
解决办法
4380
查看次数

标签 统计

wso2 ×1

wso2-api-manager ×1

wso2is ×1