Authentication Types

Last modified by Eleni Cojocariu-testing account on 2026/08/11 00:45

Reference

Only one authenticator is active at a time on a wiki, chosen as described in Select the Authenticator. The authenticators below are part of XWiki.

Authenticatorauthclass valueDescription
Standardnone, this is the defaultChecks the password stored in the user's profile. Shown as "Standard XWiki Authenticator" in the wiki administration.
Containercom.xpn.xwiki.user.impl.xwiki.AppServerTrustedAuthServiceImplTrusts the user the Servlet container already authenticated, and falls back to the standard authenticator when there is none. See Configure Container Authentication.
Kerberoscom.xpn.xwiki.user.impl.xwiki.AppServerTrustedKerberosAuthServiceImplBehaves like Container, extracting the user name out of a Kerberos principal. See Configure Kerberos SSO Authentication.
Groovycom.xpn.xwiki.user.impl.xwiki.GroovyAuthServiceImplRuns an authenticator written in Groovy and stored in a wiki page. See Set Up a Groovy Authenticator in a Wiki Page.

The values above go into the xwiki.authentication.authclass property, described in the Authentication Parameters.

Form and Basic Credentials

The standard authenticator collects credentials in one of two ways, selected with the xwiki.authentication property: form, the default, serves the login form, while basic answers an unauthenticated request with an HTTP Basic challenge.

A single request can ask for Basic authentication without changing the configuration, by adding the basicauth parameter to the URL:

https://username:[email protected]/xwiki/bin/view/Main/WebHome?basicauth=1
Warning

Over plain HTTP those credentials cross the network in clear text. Serve the wiki over HTTPS before relying on Basic authentication.

Authenticators Provided by Extensions

To write an authenticator of your own, follow Create a Custom Authenticator.

Active Directory

An Active Directory server is reached either through the LDAP Authenticator above, configured by hand, or through the Active Directory Application — a paying application from XWiki SAS that adds a visual configuration editor, settings applied without restarting the server, and support.

FAQ

Which authenticator is used when none is configured?

The standard one, which checks the password stored in the user's profile.

Can an authenticator be combined with another?

Only when it does so itself: Container and Kerberos authentication fall back to the standard authenticator, so the login form keeps working for users who have a password.

Related

Get Connected