xamarin / Xamarin.Auth

Xamarin.Auth
Apache License 2.0
541 stars 351 forks source link

[UWP] Cannot save Account with backslash in username #282

Closed themultiplexer closed 6 years ago

themultiplexer commented 6 years ago

Xamarin.Auth Issue

Version

Steps to reproduce

  1. Create an Account instance with an username that contains a backslash.
  2. Try to save it into the AccountStore.

Platform: Universal Windows Platform (UWP)

Expected behaviour

The AccountStore should save the Account with the username somedomain\user. (like it does on Android with the same code).

Actual behaviour

AccountStore stays empty.

themultiplexer commented 6 years ago

OK I more or less solved it and wrote a small utility class for saving and retrieving Accounts. Before I store the Account I encode the username with WebUtility.Encode(). After I retrieve the Account I decode the username with WebUtility.Decode() and return it.

I don't know whether UrlEncode is the right way, but it works.

newky2k commented 6 years ago

resolved