My ArangoDB server contains a database (mydb
) with a collection (thiscol
) and in the collection sits a bit of data. I can login with a user Thijs and look around using the web interface.
I cannot have user Thijs use the REST API, I have tried setting the password, granting access, restarting and making a new user.
The REST interface always returns 401 Unauthorized
. I have obviously quadrupple checked the password.
If I use the user root
it all works fine.
And I rather not start with Foxx services at this point because it seems to be an enormous amount of work to implement a REST service that allready exists but is not 'available'.
So is the REST API only implemented for a single hard-coded username or am I missing something here..
REST call example: http://localhost:8529/_api/collection
_system
database, have you added access for your user via the 'USERS' section of the web site? It is important that you add access for your user to themydb
collection. – David ThomasRead & Write (rw)
checked on yourmydb
collection? If you do, you should be able to login to the ArangoDB web UI via the console, just make sure you selectmydb
when you chose a database after providing your username and password. Now when you authenticate via REST, how do you provide your username and password? – David Thomasthijs
can log in, query and truncate thetest
collection is dbvbo
. I will add a screenshot for the REST call. I use BASIC auth. It works forroot
. – Thijs