Change comment:
Added doc for Groovy authenticator
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -163,6 +163,22 @@ 163 163 xwiki.authentication.groupclass = com.acme.MyCustomGroupService 164 164 {code} 165 165 166 +1.1.1 Custom Authentication using a Groovy script in a wiki page 167 + 168 +Start by specifying you want to use the Groovy Authenticator: 169 + 170 +{code} 171 +xwiki.authentication.authclass = com.xpn.xwiki.user.impl.xwiki.GroovyAuthServiceImpl 172 +{code} 173 + 174 +Then add another configuration parameter to specify in which wiki page the authenticator is: 175 + 176 +{code} 177 +xwiki.authentication.groovy.pagename = MySpace.MyPage 178 +{code} 179 + 180 +Then in a wiki page put some Groovy code that returns a XWikiAuthService object. 181 + 166 166 1.1 Authentication parameters 167 167 168 168 You can set each of these parameters by setting: