Github user jorgebay commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/889#discussion_r201599552 --- Diff: gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/driver-remote-connection.js --- @@ -151,7 +156,16 @@ class DriverRemoteConnection extends RemoteConnection { return; } - if (response.status.code >= 400) { + if (response.status.code === responseStatusCode.authenticationChallenge && this._authenticator) { + this._authenticator.evaluateChallenge(response).then(res => { --- End diff -- You are right, I was thinking each request have to have their own unique request id, but its not the case for auth. The requestId that have to be sent should be the same as the one in the response.
---