-
Notifications
You must be signed in to change notification settings - Fork 229
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
Replace authentication handlers with handlers from typed-rest-client #175
Comments
Hi @stephenmichaelf ,
good news I manage to authenticate the initial conntectionData request ! altough the type 3 message is sent and the response has a 200 status but when I get to res.readBody() in line 149 of RestClient.js (trying to read the final response) I have no further clues. |
Are you calling readBody multiple times? Calling it right when you get 200 should work. I haven't done a PR for this fix yet. |
no, not calling it more than once, it fails already on the first time. |
@stephenmichaelf or anyone else in VSTS team - can we get a sign to whether NTLM support will be available anytime soon? should I open a separate ticket here? |
Except for a minor change the handlers in this repo haven't been changed in a while. Is there any version, pre this change that works? Or did it never work? |
never managed to get it to work.... |
I think we just need to pull in the handlers from the typed rest client, those are working. I will try and get to this next week. Can you use a different type of auth for now? |
If this has never worked then you are the first person to try and use NTLM with this lib, or there is an issue with your setup :) I am not sure which. |
Generally the use case for this is with a bearer token. I will keep this on the backlog and look into it. I would recommend using different auth if possible. |
My use case is this: |
@bryanmacfarlane To comment on ideal solution. |
I went ahead and added this to my PR upgrading to the latest typed-rest-client, it now uses typed-rest-client's handlers |
hi @damccorm , @stephenmichaelf Thank you for your work on the matter, I upgraded my code to use the new "azure-devops-node-api": "^6.6.0" but still could not use ntlm authentication.
the first log is displayed and the second isn't at all. the node process just quits |
@nadavsinai it looks like NTLM is indeed broken even with the move to typed-rest-client handlers, I'm looking into this but will track it through #172 since that's more dedicated to this exact issue. |
We don't need to have the handlers in this repo, remove them.
In WebApi we can keep the helper methods to create auth handlers and have them instantiate from the typed-rest-client handlers.
We probably want to bump the dependency version for typed-rest-client to make sure we are getting the latest version that has the working implementation of the NTLM handler.
The text was updated successfully, but these errors were encountered: