You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue with basic authentication when using ArangoJS to connect to my ArangoDB instance. The authentication information provided in the constructor or via the useBasicAuth method doesn't seem to be applied correctly to the requests.
I am able to do what I want to do if I use curl or python. But using node, it doesn't work.
Operating System: Windows 11 host / ArrangoDB running in docker container with port exposed to host
Steps to Reproduce:
Set up an ArangoDB instance using docker with the command docker run -e ARANGO_ROOT_PASSWORD=openSesame -e ARANGO_NO_AUTH=1 -p 8529:8529 -v arangodb_data:/var/lib/arangodb3 arangodb/arangodb:latest --http.trusted-origin "*"
Attempt to make a request (e.g., fetching the database version).
Expected Behavior:
The request should include the proper authentication headers and successfully authenticate with the database.
Actual Behavior:
The request is made without authentication headers, resulting in an authentication failure.
Debugging Information:
When inspecting the Connection object after construction and before making a request, I noticed that the _requestConfig.credentials property is set to "same-origin" instead of containing the provided authentication information.
Additional Notes:
The connection works correctly when starting the ArangoDB container with -e ARANGO_NO_AUTH=1, confirming that the issue is specifically related to authentication.
Any assistance in resolving this issue would be awesome. I'm two days into trying to get this solved
The text was updated successfully, but these errors were encountered:
I'm encountering an issue with basic authentication when using ArangoJS to connect to my ArangoDB instance. The authentication information provided in the constructor or via the
useBasicAuth
method doesn't seem to be applied correctly to the requests.I am able to do what I want to do if I use curl or python. But using node, it doesn't work.
Environment:
Steps to Reproduce:
docker run -e ARANGO_ROOT_PASSWORD=openSesame -e ARANGO_NO_AUTH=1 -p 8529:8529 -v arangodb_data:/var/lib/arangodb3 arangodb/arangodb:latest --http.trusted-origin "*"
Expected Behavior:
The request should include the proper authentication headers and successfully authenticate with the database.
Actual Behavior:
The request is made without authentication headers, resulting in an authentication failure.
Code Example:
Debugging Information:
When inspecting the
Connection
object after construction and before making a request, I noticed that the_requestConfig.credentials
property is set to "same-origin" instead of containing the provided authentication information.Additional Notes:
-e ARANGO_NO_AUTH=1
, confirming that the issue is specifically related to authentication.Any assistance in resolving this issue would be awesome. I'm two days into trying to get this solved
The text was updated successfully, but these errors were encountered: