XWiki

Last modified by Pierre Jeanjean on 2026/03/25 14:14

Description

Use XWiki as a backend for Cristal.

Error

This backend is under heavy development. Please use this backend at your own risk. For instance, there is currently no guarantee that editing an existing page will update it correctly.

Limitations

Currently, requires XWiki to have a specific extension installed in order for Cristal to access the pages. Refer to the Setup section for more information.

Setup

Warning

This is a work in progress setup for test only. We are working to make XWiki able to work with Cristal (or any external XWiki web client), without having to tweak the configuration.

Cristal <0.20.0

Cristal 0.20.0+

Cristal 1.2.0+

  • Add jetty-ee10-servlets 12.0.12 to webapps/xwiki/WEB-INF/lib
  • Edit webapps/xwiki/WEB-INF/web.xml and add the content below next to the Set CORS policy for fonts filter.
    <filter>
      <filter-name>cross-origin</filter-name>
      <filter-class>org.eclipse.jetty.ee10.servlets.CrossOriginFilter</filter-class>
      <init-param>
        <param-name>allowedOriginPatterns</param-name>
        <param-value>*</param-value>
      </init-param>
      <init-param>
        <param-name>allowedMethods</param-name>
        <param-value>GET,POST,OPTIONS,DELETE,PUT,HEAD</param-value>
      </init-param>
      <init-param>
        <param-name>allowedHeaders</param-name>
        <param-value>origin, content-type, accept, authorization</param-value>
      </init-param>
    </filter>
    <filter-mapping>
      <filter-name>cross-origin</filter-name>
      <url-pattern>/rest/*</url-pattern>
      <url-pattern>/bin/*</url-pattern>
    </filter-mapping>

XWiki <16.7.0 You need to add jetty-servlets 10.0.20 instead of jetty-ee10-servlets, and use org.eclipse.jetty.servlets.CrossOriginFilter as the filter class.

OpenID Connect

For the authentication to work, XWiki needs to have the OIDC Provider extension installed.
Then, the authentication service must be set to Token based authenticator in the administration.

France 2030 Logo

This project is being financed by the French State as part of the France 2030 program

Ce projet est financé par l’État Français dans le cadre de France 2030

  • Powered by XWiki 17.10.9-node2. Hosted and managed by XWiki SAS

Get Connected