Seadrive and Seafile client via remote authentication

Hi,

I am running seafile through SSO behind a cloudflare proxy and authentication through teams. Tthe setup in general works very well and I can download and upload files via the WebUI or via the iOS app.
I am now trying to use the same setup on my Mac with seadrive and the seafile client, but this seems to be not working properly via the SSO credentials. I assume the client is not properly storing the cookies and passing the onwards to the reverse proxy. Therefore it gets a 302 and gets redirected to the external login page.
Please find the logs below. cloudflareaccess is not the TLD where seafile is hosted, but it gets a 302 to there. Any chance of fixing this? I do not want to use the internal username/password and even if I would, I cannot bypass the reverse proxy if I am not authenticated.

[07/26/21 12:22:43][Rpc Client] connected to daemon
[07/26/21 12:22:43][Rpc Client] connected to daemon
[07/26/21 12:22:44]ServerStatusService: ignore request for host "XXX.cloudflareaccess.com"
[07/26/21 12:22:44]failed to parse json:'[' or '{' expected near '<'
[07/26/21 12:22:44]update server info failed Serverfehler
[07/26/21 12:22:44]ServerStatusService: ignore request for host "XXX.cloudflareaccess.com"
[07/26/21 12:22:44]FetchAccountInfoRequest: failed to parse json:'[' or '{' expected near '<'
[07/26/21 12:22:44]ServerStatusService: ignore request for host "XXX.cloudflareaccess.com"
[07/26/21 12:22:44]ListReposRequest:failed to parse json:'[' or '{' expected near '<'
[07/26/21 12:22:44]ServerStatusService: ignore request for host "XXX.cloudflareaccess.com"
[07/26/21 12:22:44]GetStarredFilesRequest: failed to parse json:'[' or '{' expected near '<'
[07/26/21 12:22:44]ServerStatusService: ignore request for host "XXX.cloudflareaccess.com"
[07/26/21 12:22:44]GetAvatarRequest: failed to parse json:'[' or '{' expected near '<'
[07/26/21 12:22:47]ServerStatusService: ignore request for host "XXX.cloudflareaccess.com"
[07/26/21 12:22:47]ListReposRequest:failed to parse json:'[' or '{' expected near '<'
[07/26/21 12:27:44]ServerStatusService: ignore request for host "XXX.cloudflareaccess.com"
[07/26/21 12:27:44]ListReposRequest:failed to parse json:'[' or '{' expected near '<'