by Matteo Scaramuccia.
Hi Mamadou,
TNX for sharing your updates: it will help others too!
About CAS: how did you configure your CAS auth settings in Moodle?
Did you properly configure CAS logout option and optionally Alternative logout return URL?
HTH,
Matteo