Skip to content

restart autodiscover process when RedirectAddr is found#560

Open
isha1111 wants to merge 2 commits into
jamesiarmes:masterfrom
isha1111:dev
Open

restart autodiscover process when RedirectAddr is found#560
isha1111 wants to merge 2 commits into
jamesiarmes:masterfrom
isha1111:dev

Conversation

@isha1111

@isha1111 isha1111 commented Jul 5, 2019

Copy link
Copy Markdown

In the hybrid environment, this library was not able to successfully perform autodiscover process. In this case we have to follow the RedirectAddr.

I have followed Microsoft documentation on what to do if RedirectAddr is found.

Here is the link to Microsoft documentation - https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/handling-autodiscover-error-messages#restarting-autodiscover-with-a-new-email-address

When you get a new email address in an Autodiscover redirect response, first verify that the new email address that was provided in the redirect error response is not the same address that you sent in the request that resulted in the error. If it is, you should not restart Autodiscover and instead consider the URL that generated the response to be invalid.

If the new email address is different, discard your existing list of potential Autodiscover endpoint URLs and generate a new list based on the new email address.

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