Drools Workbench REST API 403 Forbidden

404 views
Skip to first unread message

Tomorr Stasa

unread,
Jan 4, 2016, 1:33:22 PM1/4/16
to Drools Usage
Hi,

When I try to access the REST API for Drools Workbench, it always returns 403 Forbidden. 
The user is logged in and I know this because without the Authorization header it returns 401 Unauthorized. 
The server it is running on is Wildfly 8.2.1.Final and the Drools Workbench version is 6.3.0.Final
The URL I try to connect to using a GET request is http://localhost:8080/drools-6.3.0/rest/repositories/
The same problem occurs when I try to do a POST request on the same URL. 
I include the Accept header, the Authorization header. For POST requests I add the Content-Type header. 
The Accept header and the Authorization header are both set to application/json
The user that we try to use in the REST API to authenticate have all of the necessary roles, which are admin and kie-server.

Thanks,
Tomorr

Maciej Swiderski

unread,
Jan 4, 2016, 3:57:06 PM1/4/16
to drools...@googlegroups.com
Grant your user rest-all role and that should solve the issue

Maciej
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/08433197-c365-401b-be0b-9936f5fc1a50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tomorr Stasa

unread,
Jan 5, 2016, 6:13:58 AM1/5/16
to Drools Usage
Hi  Maciej! 
That was quick. 
It works as it should.
Thanks

Sasha S

unread,
Jul 19, 2016, 7:52:13 AM7/19/16
to Drools Usage, tst...@gmail.com
Hello Tomorr Stasa,

Can you, please, share how you have achieved it, etc. added the "rest-all" role?
What Workbench version and distribution you are using?

I'm using drools-workbench-showcase:6.4.0.Final docker image and it contains only 4 predefined roles:  admin,analyst,kiemgmt,plannermgmt
The image contains JBoss Wildfly 8.2.0.Final as server.

вторник, 5 января 2016 г., 13:13:58 UTC+2 пользователь Tomorr Stasa написал:
Reply all
Reply to author
Forward
0 new messages