aluxnimm / outlookcaldavsynchronizer

Sync Outlook with Google, SOGo, Nextcloud or any other CalDAV/CardDAV server
GNU Affero General Public License v3.0
921 stars 97 forks source link

[BUG] Fails to authenticate with accentuated char in password #363

Closed loxK closed 1 year ago

loxK commented 2 years ago

When the user's password contains an accentuated character (verified with char ù), it fails to authenticate :

image

aluxnimm commented 2 years ago

What network settings to you use in the sync profile advanced settings? Is Force Basic Auth activated, does it make any difference if you turn it off or use preemtive auth?

loxK commented 2 years ago

It works with Force Basic Auth activated. preemtive auth doesn't change anything

So, there is a workaround (thks), but password without accentuated chars do work with default settings whereas any password should work.

(sorry, forgot to specify that is connecting to Nextcloud 24 from Outlook 2206 on Windows 10)

aluxnimm commented 2 years ago

When using force basic auth we manually write the authentication header and use base64 encoded data of the utf8 username and password fields, so that combination seems to work for special chars. Without that option we just use the default settings of the C# HttpClient and NetworkCredential classes, there is no way to change the Encoding there I guess, so I am not sure how to change the behaviour.

loxK commented 2 years ago

Are the C# libs closed source ?

aluxnimm commented 1 year ago

Will change force basic authentication where we manually add the header in the correct encoding as default for new profiles in the next release to fix those issues.