From commits-return-31855-archive-asf-public=cust-asf.ponee.io@tinkerpop.apache.org Thu Aug 23 14:51:44 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0A8881807AA for ; Thu, 23 Aug 2018 14:51:42 +0200 (CEST) Received: (qmail 97387 invoked by uid 500); 23 Aug 2018 12:51:42 -0000 Mailing-List: contact commits-help@tinkerpop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tinkerpop.apache.org Delivered-To: mailing list commits@tinkerpop.apache.org Received: (qmail 97228 invoked by uid 99); 23 Aug 2018 12:51:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2018 12:51:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id F4011E09EE; Thu, 23 Aug 2018 12:51:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: jorgebg@apache.org To: commits@tinkerpop.apache.org Date: Thu, 23 Aug 2018 12:51:53 -0000 Message-Id: In-Reply-To: <5ba666724b8f4c96893c34b0fcfb3975@git.apache.org> References: <5ba666724b8f4c96893c34b0fcfb3975@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [13/17] tinkerpop git commit: Updated documentation reflecting TINKERPOP-1977 changes. Added helper for auth to the gremlin-javascript exports. Updated documentation reflecting TINKERPOP-1977 changes. Added helper for auth to the gremlin-javascript exports. Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/a561ee01 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/a561ee01 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/a561ee01 Branch: refs/heads/master Commit: a561ee01455757ed2948aab3eb46e327310ce73a Parents: cc57c2b Author: Matthew Allen Authored: Thu Aug 23 06:44:58 2018 +0100 Committer: Matthew Allen Committed: Thu Aug 23 06:44:58 2018 +0100 ---------------------------------------------------------------------- CHANGELOG.asciidoc | 1 + docs/src/reference/gremlin-variants.asciidoc | 9 +++++++++ docs/src/upgrade/release-3.2.x-incubating.asciidoc | 2 ++ .../src/main/javascript/gremlin-javascript/index.js | 6 +++++- 4 files changed, 17 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a561ee01/CHANGELOG.asciidoc ---------------------------------------------------------------------- diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index eb1a6c5..f12c4ad 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -51,6 +51,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima * Fixed a bug in `TinkerGraphCountStrategy`, which didn't consider that certain map steps may not emit an element. * Fixed a bug in JavaScript GLV where DriverRemoteConnection close() method didn't returned a Promise instance. * Bumped to Jackson 2.9.6. +* Sasl Plain Text Authentication added to Gremlin Javascript. [[release-3-2-9]] === TinkerPop 3.2.9 (Release Date: May 8, 2018) http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a561ee01/docs/src/reference/gremlin-variants.asciidoc ---------------------------------------------------------------------- diff --git a/docs/src/reference/gremlin-variants.asciidoc b/docs/src/reference/gremlin-variants.asciidoc index e8b4c21..290b39b 100644 --- a/docs/src/reference/gremlin-variants.asciidoc +++ b/docs/src/reference/gremlin-variants.asciidoc @@ -484,6 +484,15 @@ const graph = new Graph(); const g = graph.traversal().withRemote(new DriverRemoteConnection('ws://localhost:8182/gremlin')); ---- +or for Gremlin Servers requiring SASL authentication + +[source,javascript] +---- +const graph = new Graph(); +const Authenicator = gremlin.driver.auth.PlainTextSaslAuthenicator; +const g = graph.traversal().withRemote(new DriverRemoteConnection('ws://localhost:8182/gremlin', { authenticator: new Authenticator(username, password, optionalAuthzid) }); +---- + When a traversal from the `GraphTraversalSource` is iterated, the traversal’s `Bytecode` is sent over the wire via the registered `RemoteConnection`. The bytecode is used to construct the equivalent traversal at the remote traversal source. http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a561ee01/docs/src/upgrade/release-3.2.x-incubating.asciidoc ---------------------------------------------------------------------- diff --git a/docs/src/upgrade/release-3.2.x-incubating.asciidoc b/docs/src/upgrade/release-3.2.x-incubating.asciidoc index af03937..6f2aff8 100644 --- a/docs/src/upgrade/release-3.2.x-incubating.asciidoc +++ b/docs/src/upgrade/release-3.2.x-incubating.asciidoc @@ -29,6 +29,8 @@ Please see the link:https://github.com/apache/tinkerpop/blob/3.2.10/CHANGELOG.as === Upgrading for Users +The Gremlin Javascript Driver now supports SASL Plain Text authentication against a Gremlin Server. See: link:http://tinkerpop.apache.org/docs/current/reference#gremlin-javascript[Reference Documentation - Gremlin Javasctipt] + ==== Bulk Import and Export TinkerPop has provided some general methods for importing and exporting data, but more and more graph providers are http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a561ee01/gremlin-javascript/src/main/javascript/gremlin-javascript/index.js ---------------------------------------------------------------------- diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/index.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/index.js index d4c6d88..9cc6349 100644 --- a/gremlin-javascript/src/main/javascript/gremlin-javascript/index.js +++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/index.js @@ -31,13 +31,17 @@ const rc = require('./lib/driver/remote-connection'); const Bytecode = require('./lib/process/bytecode'); const utils = require('./lib/utils'); const DriverRemoteConnection = require('./lib/driver/driver-remote-connection'); +const PlainTextSaslAuthenticator = require('./lib/driver/auth/plain-text-sasl-authenticator'); module.exports = { driver: { RemoteConnection: rc.RemoteConnection, RemoteStrategy: rc.RemoteStrategy, RemoteTraversal: rc.RemoteTraversal, - DriverRemoteConnection: DriverRemoteConnection + DriverRemoteConnection: DriverRemoteConnection, + auth: { + PlainTextSaslAuthenticator: PlainTextSaslAuthenticator + } }, process: { Bytecode: Bytecode,