Git Product home page Git Product logo

Comments (8)

yecapee avatar yecapee commented on May 19, 2024

maybe the point is why ntlm auth return 401 -

Request URL:https://twmail.ami.com.tw:443/Ews/Exchange.asmx
Request Method:GET
Status Code:401 Unauthorized
Response Headersview source
content-length:0
date:Mon, 20 Jun 2016 05:57:59 GMT
server:Microsoft-IIS/7.5
set-cookie:exchangecookie=21f8b9a313b947818ef6f917ac439d73; expires=Tue, 20-Jun-2017 05:57:59 GMT; path=/; HttpOnly
www-authenticate:NTLM TlRMTVNTUAACAAAAGgAaADgAAAAFgomiwax6f+Z+oTIAAAAAAAAAAMIAwgBSAAAABgGxHQAAAA9NAEUARwBBAFQAUgBFAE4ARABTAC4AVABXAAIAGgBNAEUARwBBAFQAUgBFAE4ARABTAC4AVABXAAEADgBUAFcALQBDAEEAUwAxAAQAIgB0AHcALgBtAGUAZwBhAHQAcgBlAG4AZABzAC4AYwBvAG0AAwAyAFQAVwAtAEMAQQBTADEALgB0AHcALgBtAGUAZwBhAHQAcgBlAG4AZABzAC4AYwBvAG0ABQAiAHUAcwAuAG0AZQBnAGEAdAByAGUAbgBkAHMALgBjAG8AbQAHAAgAYJ32srjK0QEAAAAA, Negotiate
x-powered-by:ASP.NET
Request Headersview source
Authorization:NTLM TlRMTVNTUAABAAAAB6IIogAAAAAoAAAAAAAAACgAAAAFASgKAAAADw==
Connection:keep-alive
Host:twmail.ami.com.tw

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

I do not have access to test environment with NTLM credential. it may take a while to confirm it.

for streaming, it uses different XHR methods which does not support replacing like you do with NTLM.

once I have access to my test environment, I can test it and try fix the issue.

from ews-javascript-api.

emcho92 avatar emcho92 commented on May 19, 2024

Is there any other workaround for this, to get streaming subscriptions working with NTLM?
Or do you know when you are going to implement this?

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

it is taking time for me to completely rewrite the XHR and Promise api, targeting for 1.0 beta release.
if you want to take your time to fix it, I was planning to use 'httpntlm' with 'fetch'. there is a way to use 'ntlm' library in handshake only, you can use approach similar to async.waterfall and use it with FetchStream.

you can look at HangingServiceRequestBase.ts file to find out how is this done (using different XHR than default)

from ews-javascript-api.

emcho92 avatar emcho92 commented on May 19, 2024

OK. I'll try with httpntlm.
Btw when is the 1.0 beta planned for release?

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

no date, once I finish #48 it will be 0.8.0 and #94 will make it 0.9.0. will close more issues with code improvement tag + bugs, it will be released beta.

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

#131 is merged and #94 is closed. still awaiting 0.9 push on npm. you can still build form master to use this feature.

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

ews-javascript-api@next includes these changes. reopen if still facing issue. for NTLM v2 see #173

from ews-javascript-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.