Author Topic: EWS not working (HTTP/1.1 401 Unauthorized)  (Read 5687 times)

Unic

  • Newbie
  • *
  • Posts: 3
EWS not working (HTTP/1.1 401 Unauthorized)
« 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.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: EWS not working (HTTP/1.1 401 Unauthorized)
« Reply #1 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?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Unic

  • Newbie
  • *
  • Posts: 3
Re: EWS not working (HTTP/1.1 401 Unauthorized)
« Reply #2 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

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: EWS not working (HTTP/1.1 401 Unauthorized)
« Reply #3 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.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Unic

  • Newbie
  • *
  • Posts: 3
Re: EWS not working (HTTP/1.1 401 Unauthorized)
« Reply #4 on: May 11, 2016, 10:52:36 am »
Thank you very much for the incredible support.

This APK works for me.


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: EWS not working (HTTP/1.1 401 Unauthorized)
« Reply #5 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).
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/