Wiki source code of Authentication
Last modified by Eleni Cojocariu on 2026/08/10 23:36
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
20.1 | 1 | |
![]() |
17.2 | 2 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
| 3 | {{toc/}} | ||
| 4 | {{/box}} | ||
| 5 | |||
![]() |
12.1 | 6 | = Logging in = |
| 7 | |||
| 8 | When you need to log in to access a wiki page, you'll see the following form: | ||
| 9 | |||
| 10 | {{image reference="login.png"/}} | ||
| 11 | |||
| 12 | == Forgot Username == | ||
| 13 | |||
| 14 | If you forgot your username, you can retrieve it by clicking on the "Forgot your username?" link: | ||
| 15 | |||
| 16 | {{image reference="login-forgot-username-1"/}} | ||
| 17 | |||
![]() |
20.1 | 18 | Then, you'll need to indicate the email address for your user and you'll be emailed your username (the mail template can be [[customized>>documentation.xs.admin.authentication.customize-mail-templates.WebHome]]). |
![]() |
12.1 | 19 | |
| 20 | {{image reference="login-forgot-username-2"/}} | ||
| 21 | |||
| 22 | == Forgot Password == | ||
| 23 | |||
| 24 | If you forgot your password, you can reset it by clicking on the "Forgot your password?" link: | ||
| 25 | |||
| 26 | {{image reference="login-forgot-password-1"/}} | ||
| 27 | |||
![]() |
20.1 | 28 | Then, you'll need to indicate your username and if you had an email address set for your user, you'll receive a email with a link to set a new password (the mail template can be [[customized>>documentation.xs.admin.authentication.customize-mail-templates.WebHome]]). |
![]() |
12.1 | 29 | |
![]() |
17.3 | 30 | {{image reference="login-forgot-password-2"/}} |
| 31 | |||
![]() |
12.1 | 32 | = Authentication Mechanisms = |
| 33 | |||
![]() |
10.1 | 34 | XWiki Standard embeds several authentication mechanisms by default: |
![]() |
1.1 | 35 | |
![]() |
3.1 | 36 | * Form authentication |
| 37 | * Basic authentication | ||
![]() |
1.1 | 38 | |
![]() |
3.1 | 39 | In addition XWiki allows you to create your own authentication extension in order to integrate with any custom mechanism you might be using already (SSO, etc). |
![]() |
1.1 | 40 | |
![]() |
11.2 | 41 | Additional authenticators are available as extensions on [[extensions.xwiki.org>>extensions:Main.WebHome]]: |
![]() |
7.1 | 42 | |
![]() |
10.1 | 43 | {{velocity}} |
| 44 | #set ($xwql = "from doc.object(ExtensionCode.ExtensionClass) as extension, doc.object(EXOExtensionCode.ExtensionClass) as exoextension where extension.category = 'authenticator'") | ||
| 45 | #set ($extensions = $services.query.xwql($xwql).setWiki('extensions').execute()) | ||
| 46 | #foreach ($extension in $extensions) | ||
| 47 | * [[extensions:$extension]] | ||
| 48 | #end | ||
| 49 | {{/velocity}} | ||
![]() |
4.1 | 50 | |
![]() |
11.1 | 51 | {{info}} |
| 52 | Note that several extensions are not yet categorized in the ##authenticator## category on [[extensions.xwiki.org>>extensions:Main.WebHome]] and this is why they don't appear in the list above. For the moment, here's list of all extensions having "Authenticator" in the name: | ||
| 53 | |||
| 54 | {{velocity}} | ||
| 55 | #set ($xwql = "from doc.object(ExtensionCode.ExtensionClass) as extension, doc.object(EXOExtensionCode.ExtensionClass) as exoextension where extension.name like '%Authenticator%'") | ||
| 56 | #set ($extensions = $services.query.xwql($xwql).setWiki('extensions').execute()) | ||
| 57 | #foreach ($extension in $extensions) | ||
| 58 | * [[extensions:$extension]] | ||
| 59 | #end | ||
| 60 | {{/velocity}} | ||
| 61 | {{/info}} | ||
| 62 | |||
![]() |
20.1 | 63 | For more details on how to configure authentication check the [[User Authentication documentation>>documentation.xs.admin.authentication.WebHome]]. |


