WSO2 API Manager - API身份验证失败 - 未提供必需的OAuth凭据

时间:2014-03-25 14:12:01

标签: oauth wso2

我正在使用wso2 API管理器而不是其他API。每次我在wso2上点击服务时,虽然应用程序运行正常但我得到了下面提到的错误。我尝试将OPTIONS设置为"无"但是徒劳无功 有人可以建议如何解决它吗?

2014-03-25 19:36:05,647 [ - ] [PassThroughMessageProcessor-9]错误APIAuthenticationHandler API身份验证失败 org.wso2.carbon.apimgt.gateway.handlers.security.APISecurityException:未提供所需的OAuth凭据         在org.wso2.carbon.apimgt.gateway.handlers.security.oauth.OAuthAuthenticator.authenticate(OAuthAuthenticator.java:114)         在org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest(APIAuthenticationHandler.java:92)         在org.apache.synapse.rest.API.process(API.java:285)         在org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)         在org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)         在org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)         在org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)         在org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)         at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:336)         at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:377)         在org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)         在org.apache.axis2.transport.base.threads.NativeWorkerPool $ 1.run(NativeWorkerPool.java:172)         在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)         at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)         在java.lang.Thread.run(Thread.java:724)

1 个答案:

答案 0 :(得分:1)

根据错误,您似乎没有发送授权标头。您能指定用于发送请求的客户端吗?