Problems NextCloud Client synchronization with CAS login

We have installed nextcloud with the app CAS user and group backend v. 1.5.6 from the apps store.
Next we have configurated with CAS login version 3 and autocreate user after CAS login.
We acces correctly firstly but after 5 minuts the client ask for login again to sync but can’t login automaticaly.