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 SASL (revisiting PR #78) #83

Merged
merged 6 commits into from
Aug 29, 2017
Merged

Conversation

vivekr20
Copy link
Contributor

Added changes to perform SASL authentication on 407 challange responses.
This PR is revisiting changes for SASL support from: #78

FYI:
Earlier in May, I had created "gremlin-secure", a copy of the "gremlin" npm module which included the changes from this PR.
https://www.npmjs.com/package/gremlin-secure

Hoping that we can merge these changes back to the base repo, so that I can take down gremlin-secure, and point folks back to the original gremlin npm module :)

SSL changes have already come in, so I'm merging/reverting the SSL changes that we had added.
@jbmusso
Copy link
Owner

jbmusso commented Aug 7, 2017

Back from vacation - thanks for sending this! Would you developers at Microsoft be interesting in having push permission to this repository? I think that makes a lot of sense and that'd help pushing new versions to npm faster.

Additionally, updating SASL auth example to remove session option, and adding ssl option.
… 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)
@@ -218,6 +226,21 @@ class GremlinClient extends EventEmitter {
return message;
};

buildChallengeResponse(requestId) {
const { processor, op, accept, language, aliases } = this.options;
var utf8 = require('utf8');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this require() at the top as import utf8 from 'utf8' please? That should work ok with Babel.

@jbmusso jbmusso merged commit 747c080 into jbmusso:master Aug 29, 2017
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

2 participants