Skip to content

Adding kerberos auth support #230

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

Closed
wants to merge 1 commit into from

Conversation

zhenlineo
Copy link
Contributor

No description provided.

Copy link
Contributor

@lutovich lutovich left a comment

Choose a reason for hiding this comment

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

@zhenlineo looks good but I think we need to add some type checking and tests. JS is really fragile wrt to typos :)

@@ -38,6 +38,9 @@ const auth ={
return {scheme: "basic", principal: username, credentials: password};
}
},
kerberos:(base64EncodedTicket)=> {
return {scheme:"kerberos", credentials: base64EncodedTicket};
Copy link
Contributor

Choose a reason for hiding this comment

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

Formatting is a bit off here

Copy link
Contributor

Choose a reason for hiding this comment

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

Please add tests for this method to avoid breaking with a typo or smth like it. We should also type check given base64EncodedTicket with util.assertString() function.

@lutovich
Copy link
Contributor

Closing in favour of #236

@lutovich lutovich closed this Apr 24, 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.

2 participants