<
From version < 27.3 >
edited by Vincent Massol
on 2008/12/30
To version < 28.1 >
edited by Vincent Massol
on 2009/05/18
>
Change comment: Added doc for Groovy authenticator

Summary

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:

Get Connected