1897-Add_murena_account_support
To let /e/OS Account Manager, eDrive implement OwncloudClient properly (similar to NC android app), which enable session-cookie sharing across requests, we have to modify the lib to support our requirements.
Why
- session-cookie sharing improve resource usage & performance on the backend, which improve the performance in the os side.
- there is a
userId
mismatch issue for@e.email
& other NC accounts, which requires some modification - some modification is required on the request cookie refresh logic, so one set of cookies can be shared between multiple apps at the same time.
Technical points
- fix eelo account name is parsed wrongly issue
- fix password parsing failed on main thread issue
- set account.name as userID if KEY_USER_ID userData is missing from account
- fix cookie initialization failing if wrong format is present
- reset cookies for 401
- retry without session-cookie for 401
issue: