How to Login in with the desktop (and app) client when using lemonldap and SSO

Hi,

Our Nextcloud is deployed behind lemonldap.

Lemonldap catches all incoming new connections and check ldap authentification before giving a sso token to connect to Nextcloud. It does work well when clients connect through web browsers.

Using Nextcloud client, when setting up “server address”, the client displays “Failed to connect to Nextcloud… Unknown error”
It looks something is going weird between the client and lemondlap.

Any idea how to write a lemondlap rule to skip ldap authentification when client is a nextcloud desktop ?
maybe something like

$ENV{HTTP_USER_AGENT} =~ /Nextcloud/ ? skip : 1

It is more a lemondlap question but i was not able to find a lemonldap forum

Thanks