If authentication is enabled, then there are two ways to authenticate:
However, we do not have a choice on which one to use as it depends on exactly what the task is. In other words, the type of authentication is purely dependent on the task. For example (assuming authentication is enabled):
http://MyURL:9000/echo > Requires token authentication
http://MyURL:14240/gsql/schema?graph=… > Requires UserName/Pwd authentication
Are there any cases where either authentication can be used or is it always written in stone as to which one must be used?
We will check with the development team and get back to you.
We researched this issue for you:
- All endpoints to the RESTPP server using port 9000 use token authentication.
- Some other endpoints, to the GSQL server, GraphStudio or Admin Portal, which use port 14240, use username+password authentication. This discrepancy is an oversight and we are working to make all of them accept token authentication.
Note: Until recently, our documentation indicated using port 8123 for the GSQL server. While this worked for single-server deployments, this does not work for clusters. You should also use port 14240 for the GSQL server.