Open rrmerugu opened 4 years ago
I have pushed the code to https://github.com/rrmerugu/janusgraph-docker-auth-example to make it easy to test.
Never mind, I got it working when i changed conf/janusgraph-credentials-server.properties
to
// conf/janusgraph-credentials-server.properties
gremlin.graph=org.janusgraph.core.JanusGraphFactory
storage.backend=cql
storage.hostname=127.0.0.1
storage.cql.keyspace=janusgraph_auth
Example of janusgraph-credentials-server.properties
in the documentation might have helped. The documentation in https://docs.janusgraph.org/basics/server/#http-basic-authentication states the following.
In the preceding example, credentialsDb should be different from the graph(s) you are using. It should be configured with the correct backend and a different keyspace, table, or storage directory as appropriate for the configured backend. This graph will be used for storing usernames and passwords.
But it took some time for me to figure out the keys needed for it to work. Can we add example of janusgraph-credentials-server.properties
in the documentation ?
I changed the title here to make it easier to see that this issue is now only about adding documentation for authentication with the Docker image.
I'm attempting to add basic authentication to the websocket channel. I tried following the docs from https://docs.janusgraph.org/basics/server/#http-basic-authentication and added the authentication config in
gremlin-server.yaml
. I used my own config files in a folderconf
and tried to rundocker-compose up
. Its failing with the error "Gremlin Server was unable to start and will now begin shutdown: Could not create/configure Authenticator null error"What am I doing wrong here ?
Here is the response tail of
docker-compose up
.