Acceder a Bonita desde Postman (Wildfly)

1
0
-1

Hola, he configurado Bonita 7.4.3 en wildfly, tengo acceso a todo mediante la página del portal, pero quiero crear una aplicación externa para el uso del REST API, entonces estoy haciendo las pruebas de consumo desde postman, al realizar la llamada POST a /bonita/loginservice con las credenciales de ingreso me sale el siguiente error:

16:51:11,503 SEVERE [org.bonitasoft.console.common.server.login.credentials.LoginDatastore] (default task-1) Error while logging in the engine API.
16:51:11,507 SEVERE [org.bonitasoft.console.common.server.login.credentials.LoginDatastore] (default task-1) Error while logging in the engine API.
16:51:11,507 SEVERE [org.bonitasoft.console.common.server.login.servlet.LoginServlet] (default task-1) org.bonitasoft.engine.platform.LoginException: Error while logging in the engine API.

Por favor si alguien me puede ayudar con una configuración extra que tenga que hacer en Wildfly, pues este error en tomcat lo resolvía habilitando el CORS

Muchas Gracias.

1 answer

1
0
-1

Hola,

Voy a probar para respondar en Espanol pero es muy mal. Lo siento.

Yo he probado para la llamada del REST Api con POSTMAN y esta funcionando bien. Yo uso el Mac OS version del POSTMAN con el POSTMAN Chrome plugin para interceptar lo tráfico de mi browser. No he usado extra configuración en Wildfly.

Estás llamando del REST Api con HTTPS protocol o HTTP protocol?

Lio

Comments

Submitted by rositamg1993 on Wed, 04/26/2017 - 21:17

Hello Lio,

I can write in English, there's no problem. I'm using HTTP. The problem is that i can't get the API-Bonita-Token in wildfly. I change the csrf to false and nothing change. The token appears in the headers but i can't get it.

Thanks.

Submitted by Lionel Palacin on Wed, 04/26/2017 - 21:35

That's weird. Using POSTMAN, it should use your browser session, so if your logged in the Portal in your browser that should work in POSTMAN.

That being said, I know there are current issues with http2 and Wildfly (Tomcat 7 does not support http2) that mess up with CSRF, but by default http2 is not activated on the http interface, it's activated on the https interface though. Make sure, http2 is not activated in your environment.

Notifications