Skip to content
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

restart autodiscover process when RedirectAddr is found #560

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

isha1111
Copy link

@isha1111 isha1111 commented Jul 5, 2019

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