MATLAB on OOD 3.1: App has not been initialized or does not exist

OK this error only happens after the initial login then goes away. We are using CAS and it’s similar to this 2020 RStudio thread. I tried adding CASScope to out conf file but get:

Oct 16 14:30:41 ood.ouruni.edu httpd[1402821]: AH00526: Syntax error on line 17 of /etc/httpd/conf.d/cas.conf:
Oct 16 14:30:41 ood.ouruni.edu httpd[1402821]: CASScope not allowed here