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
But, examining the Tinkerpop server side, it is looking for the key in lower case "sasl". The difference means the server sees an authentication challenge response with no parameters and returns a 401 Unauthenticated.
I suggest changing the line into:
var saslbase64=new Buffer('\0' + this.user + '\0' + this.password).toString('base64');
var args = { sasl: saslbase64 };
Which also does a base64 encoding of the parameters to make them more resilient to string processing and encoding.
The text was updated successfully, but these errors were encountered:
Hi @jbmusso , we are also having the same problem and the suggested change by @codepope works :) . I'm asking politely if you are currently working on it or is this something we could help by doing the PR.
Thanks
When the BuildChallengeResponse is triggered it sets the SASL key as "SASL":
https://github.com/jbmusso/gremlin-javascript/blob/master/gremlin-client/src/GremlinClient.js#L246
But, examining the Tinkerpop server side, it is looking for the key in lower case "sasl". The difference means the server sees an authentication challenge response with no parameters and returns a 401 Unauthenticated.
I suggest changing the line into:
Which also does a base64 encoding of the parameters to make them more resilient to string processing and encoding.
The text was updated successfully, but these errors were encountered: