cancel
Showing results for 
Search instead for 
Did you mean: 

REST-API problem

thomas123
Champ in-the-making
Champ in-the-making
Hi,
I have just installed the 5.11 REST-API war-file on Tomcat6 with an Oracle database behind.
At startup, the tables in oracle were created, but no content is in there.

Now I want to follow the curl example (curl –basic –user kermit:kermit http://localhost:8080/activiti-rest/service/xxx) in the user guide but it always says:

<html>
<head>
   <title>Status page</title>
</head>
<body style="font-family: sans-serif;">
<p style="font-size: 1.2em;font-weight: bold;margin: 1em 0px;">Forbidden</p>
<p>Authentication is required</p>
<p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4">here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>

I have also created a user kermit and group kermit with role security-role directly with sql in the tables ACT_ID_GROUP and ACT_ID_USER and tried to login with kermit:kermit.

How can I manage the authentication?

Kind regards,
Thomas
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
We introduced a demo data generator in the 5.12 release. You can just take that bean and add it to your config: https://github.com/Activiti/Activiti/tree/master/modules/activiti-rest/src/main/java/org/activiti/re...

thomas123
Champ in-the-making
Champ in-the-making
Thank you for the answer. At creation time of the datatables it might be a good idea to also create a user (aka superuser or admin), so that you can use the REST-API after installation. A kermit/kermit might help here.

Is it possible to ship the neccessary data for the first login-user in the next version?

jbarrez
Star Contributor
Star Contributor
Yes, good point. Although that might conflict with existing users created by Explorer of course.
But I'll add it, yes!