Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for SSL and SASL #78

Closed
wants to merge 1 commit into from
Closed

Conversation

CosmosDB
Copy link

@CosmosDB CosmosDB commented May 10, 2017

Support for SSL and SASL

Sample usage:

const Gremlin = require("gremlin");

const port = 51549; 
const host = 'localhost';
const client = Gremlin.createClient(port, host, {
    session:false,
    ssl:true,
    user:'user',
 password:'password' } );

The changes contain basic support for gremlin client to connect using SASL protocol to a Gremlin Server that supports authentication (Details on Gremlin SASL specification: http:https://tinkerpop.apache.org/docs/current/dev/provider/#_authentication).

The changes also contains support for SSL protocol (this is just about switching websockets ws:https:// to secure websockets wss:https:// based on an additional option supported by Gremlin.createClient() API)

@CosmosDB CosmosDB closed this May 10, 2017
@jbmusso
Copy link
Owner

jbmusso commented May 10, 2017

Ah, this is definitely something we need to add. Thanks for sending this, I only see a couple minor issues with your PR so maybe we should start working from there.

@jelisejev
Copy link

Hello,

What's the current state of this PR? Did I understand correctly, that the library currently doesn't have any authentication support?

jbmusso pushed a commit that referenced this pull request Aug 29, 2017
* SSL and SASL support.

* Updating README to show how to use SASL Authentication.

* Update, adding user and password to options list.
Additionally, updating SASL auth example to remove session option, and adding ssl option.

* Changed ordering of options.

* -Moved utf8 importing to the top, to avoid reloading each time. (Also changed the pattern to follow standard javascript importing)
-Added an example for gremlin client with SASL. (username and pwd have to be set accordingly based on your gremlin server)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants