ews-javascript-api icon indicating copy to clipboard operation
ews-javascript-api copied to clipboard

Intermittent Cross-Configuration Issues in EWS Services When Using ntlmAuthXhrApi

Open miguelcr1982 opened this issue 1 year ago • 1 comments
trafficstars

I am using the ews-javascript-api library to send and receive emails through EWS in a Node.js project. I have two service instances, one for sending and another for receiving, using different email accounts.

I expect each service to maintain its own authentication configurations and not interfere with each other. However, occasionally, the send service uses the credentials of the receive account.

// Code for the send service ews_send.ConfigurationApi.ConfigureXHR( new ews_send.ntlmAuthXhrApi( this.configService.get('EMAIL_USER_REPLY'), this.configService.get('EMAIL_PASSWORD_REPLY') ) );

// Code for the receive service ews_receive.ConfigurationApi.ConfigureXHR( new ews_receive.ntlmAuthXhrApi( this.configService.get('EMAIL_USER_RECEIVES'), this.configService.get('EMAIL_PASSWORD_RECEIVES') ) );

Steps to Reproduce the Issue:

Set up two different email accounts for sending and receiving. Call ConfigureXHR for the send service. Call ConfigureXHR for the receive service. Perform sending and receiving operations simultaneously. Occasionally, observe that the send service's credentials cross over with the receive service's credentials.

Environment:

Node.js version: 20.17.0 ews-javascript-api version: 0.15.3

miguelcr1982 avatar Oct 03 '24 15:10 miguelcr1982