Wiki source code of Configure Container Authentication
Last modified by Eleni Cojocariu-testing account on 2026/08/11 00:45
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | To hand authentication over to the [[Servlet container>>documentation.xs.admin.installation.methods.install-xwiki-war.configure-servlet-container.WebHome]]: | ||
| 2 | |||
| 3 | 1. Configure the container itself to authenticate the requests it serves, following its own documentation. | ||
| 4 | 1. Set the Container authenticator in the ##xwiki.cfg## file:((( | ||
| 5 | {{code language="properties"}} | ||
| 6 | xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.AppServerTrustedAuthServiceImpl | ||
| 7 | {{/code}} | ||
| 8 | ))) | ||
| 9 | 1. Add the property below to the same file, so that the users the container authenticates are created in the wiki:((( | ||
| 10 | {{code language="properties"}} | ||
| 11 | xwiki.authentication.createuser=empty | ||
| 12 | {{/code}} | ||
| 13 | ))) | ||
| 14 | 1. Restart the wiki. | ||
| 15 | 1. Log in through the container and check that the wiki shows you as that user, and that a profile page now exists for it in the ##XWiki## space. |