AquaMail Forum

English - Android => Bug reports => Topic started by: Unic on May 08, 2016, 02:23:34 pm

Title: EWS not working (HTTP/1.1 401 Unauthorized)
Post by: Unic on May 08, 2016, 02:23:34 pm
Hello,

iam trying to get EWS Exchange working, but i always get unauthorzed.
Iam Using emClient with EWS on my Desktop without any problems,  but i cant get it to work with aquamail.

I have a small logsnipped attached.
Title: Re: EWS not working (HTTP/1.1 401 Unauthorized)
Post by: Kostya Vasilyev on May 08, 2016, 03:00:31 pm
Yes, EmClient also uses EWS, so this confirms that your corporate server supports EWS.

Looking at the log, it looks like the server wants "Digest" (MD5) authentication, this is currently not enabled in AquaMail's HTTP code, but could be.

What version of the app (AquaMail) are you running right now?
Title: Re: EWS not working (HTTP/1.1 401 Unauthorized)
Post by: Unic on May 10, 2016, 06:33:30 pm
Thanks for the fast response and sorry for my late one. Notification was killed by spamfilter...

I am using AquaMail Pro 1.6.1.5
Title: Re: EWS not working (HTTP/1.1 401 Unauthorized)
Post by: Kostya Vasilyev on May 10, 2016, 10:58:28 pm
Please try this build where I enabled "digest" auth:

https://www.aqua-mail.com/download/AquaMail-market-1.6.1.7-1-digest1.apk

You can update from 1.6.1.5 in-place without a full reinstall -- but it would be advisable to make backup (Menu -> Backup and Restore on the app's main window) beforehand.
Title: Re: EWS not working (HTTP/1.1 401 Unauthorized)
Post by: Unic on May 11, 2016, 10:52:36 am
Thank you very much for the incredible support.

This APK works for me.

Title: Re: EWS not working (HTTP/1.1 401 Unauthorized)
Post by: Kostya Vasilyev on May 11, 2016, 12:25:44 pm
Good. Thank you for checking.

I will keep this change in the code then (and hopefully it doesn't cause issues for others, i.e. broken servers).