Environment: Windows 11 Pro 64bit, Firefox 98, using an instance of XWiki 14.1 on Tomcat 9.0.59/ PostgreSQL 14 (tested also on XWiki 13.10.3 Jetty/HSQLDB) on Java 11 and Java 17 from Oracle with Office365 Integration (Pro) 1.9.1
STEPS TO REPRODUCE
- Go to Administer Wiki > Other > Office365 and fill the Tenant name, Client ID and Secret Key corresponding to the application from Azure Portal
- Edit a page in wiki/source mode
- Insert
{{office365 /}} macro
- Click Save & View
EXPECTED RESULTS
The user is asked to login to Microsoft365.
ACTUAL RESULTS
An error is displayed only in the browser and the user cannot login:
Failed to execute the [groovy] macro. Cause: [class java.lang.String cannot be cast to class java.util.List (java.lang.String and java.util.List are in module java.base of loader 'bootstrap')]. Click on this message for details.
Full stacktrace is available here: https://up1.xwikisas.com/#78RiUGVIB0NujZBTyPy8Cg
The issue reproduced also on XWiki 13.10.3. However, I've tested with Office365 Integration (Pro) 1.8 and the issue could not be reproduced.

Environment: Windows 11 Pro 64bit, Firefox 98, using an instance of XWiki 14.1 on Tomcat 9.0.59/ PostgreSQL 14 (tested also on XWiki 13.10.3 Jetty/HSQLDB) on Java 11 and Java 17 from Oracle with Office365 Integration (Pro) 1.9.1
STEPS TO REPRODUCE
{{office365 /}}macroEXPECTED RESULTS
The user is asked to login to Microsoft365.
ACTUAL RESULTS
An error is displayed only in the browser and the user cannot login:
Failed to execute the [groovy] macro. Cause: [class java.lang.String cannot be cast to class java.util.List (java.lang.String and java.util.List are in module java.base of loader 'bootstrap')]. Click on this message for details.Full stacktrace is available here: https://up1.xwikisas.com/#78RiUGVIB0NujZBTyPy8Cg
The issue reproduced also on XWiki 13.10.3. However, I've tested with Office365 Integration (Pro) 1.8 and the issue could not be reproduced.