首页 文章

FIWARE CEP(质子)REST输出身份验证错误

提问于
浏览
1

我正在训练使用REST使用者将FIWARE CEP(Proton)的输出事件发送到ActiveMQ队列 . 访问ActiveMQ队列的凭据包含在URL中,如http://user:passwrd@X.X.X.X:xxxx/api/message/myqueue,但我有以下错误:

com.ibm.hrl.proton.webapp.resources.EventResource submitNewEvent INFO:发送到proton运行时的事件... org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO:选择的基本身份验证方案org.apache.commons.httpclient .HttpMethodDirector processWWWAuthChallenge INFO:没有可用于BASIC'ActiveMQRealm'的凭据@XXXX com.ibm.hrl.proton.server.executorServices.SimpleThreadFactory $ ProtonExceptionHandler uncaughtException SEVERE:线程中未捕获的异常:Thread [4,5,main],exception:com .ibm.hrl.proton.adapters.rest.client.RESTException:com.ibm.hrl.proton.adapters.rest.client.RESTException:无法执行事件实例的POST:...带有请求标头:Content-Type: text / plain User-Agent:Jakarta Commons-HttpClient / 3.0主机:XXXX:xxxx内容长度:389到消费者http:// user:passwrd @XXXX:xxx / api / message / myqueue,响应结果:401

似乎Proton不从URL中提取凭证 .
其他人有同样的问题吗?

1 回答

  • 1

    您可以向CEP REST使用者定义添加AuthToken参数 .

    从CEP用户指南(可以找到here):

    AuthToken - 可选参数 . 设置后,将其添加为请求的X-Auth-Token HTTP标头 .

相关问题