Hi Julio,
if I get it right:
1.) If you are not authenticated you can't start any process instance or get any task. The only request you could do without authentication on the REST-API is a GET request for /engine to get all engine names. If you use more than 1 engine (e.g. for a cluster system) you have to select the engine to authenticate against. For all other requests you have to authenticate with an user which you have created before (See:
http://docs.camunda.org/latest/api-references/rest/#user-create-user or use our admin-tool which is delivered with our pre-packaged distribution)
2.) To maintain the integrity you could use the database tables of the engine for users and roles/groups. If you use our pre-packaged engine there will be a h2 database but you could also configure a MySQL, PostgreSQL, Oracle, DB2 or Microsoft SQL in the application server so that you can easily get access via PHP to the database. Another way to get the integrity is to create and/or update the users with REST-API calls.
For the database way: you could have a look into our installation guide (
http://docs.camunda.org/latest/guides/installation-guide/) and in the installation guides of the application server.
For the REST-API way (I would recommend this way): you could have a look into our PHP SDK project and this REST-API documentation for users and groups
(
-- users:
http://docs.camunda.org/latest/api-references/rest/#user
-- groups:
http://docs.camunda.org/latest/api-references/rest/#group
)
I hope this is all clear :-)
Feel free to ask if you have any question.
Cheers,
Stefan