We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question
0

FIWARE CEP (Proton) REST ouput authentication error

asked 2015-12-16 05:31:29 +0200

mafg gravatar image

Hi, I'm training to send an output event from FIWARE CEP (Proton), using the REST consumer, to an ActiveMQ queue. The credential for access the ActiveMQ queue are included in the URL, as http://user:passwrd@X.X.X.X:xxxx/api/..., but I have the following error:

com.ibm.hrl.proton.webapp.resources.EventResource submitNewEvent
INFO: events sent to proton runtime...
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: No credentials available for BASIC 'ActiveMQRealm'@X.X.X.X
com.ibm.hrl.proton.server.executorServices.SimpleThreadFactory$ProtonExceptionHandler uncaughtException
SEVERE: Uncaught exception in thread: Thread[4,5,main],exception: com.ibm.hrl.proton.adapters.rest.client.RESTException: com.ibm.hrl.proton.adapters.rest.client.RESTException: Could not perform POST of event instance: ...
with request headers:
Content-Type: text/plain
User-Agent: Jakarta Commons-HttpClient/3.0
Host: X.X.X.X:xxxx
Content-Length: 389
to consumer http://user:passwrd@X.X.X.X:xxx/api/m..., responce result: 401

Seems like that Proton doesn't extract the credential from the URL.
Anyone else had the same problem?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2016-01-03 01:10:38 +0200

tali gravatar image

The CEP GE does not support this kind of authentication. It does support adding X-Auth-Token to the HTTP header of the request.

This can be done by adding to the CEP REST consumer definition an AuthToken parameter.

From the CEP user guide (can be found here):

AuthToken – an optional parameter. When set, it is added as an X-Auth-Token HTTP header of the request.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-12-16 05:31:29 +0200

Seen: 3,626 times

Last updated: Dec 16 '15