[xwiki-devs] anonymous user / custom authentication
guillaume at xwiki.com
Mon Mar 14 15:52:31 UTC 2011
On Mon, Mar 14, 2011 at 16:33, Kevin P. Foote <kpfoote at iup.edu> wrote:
> Hi devs,
> In writing my own auth plugin I want the ability to run XWiki in
> anonymous browsing mode as well as the login request triggering my
> particular auth jar (much like xwiki.org - you can many pages w/out
> actually authenticating). I have two resulting questions.
> Is there a magic user name in the form of XWiki."anonymous"/Guest etc..
> that I can return in my checkAuth? OR am I thinking about this
> incorrectly and xwiki already knows that this user is who the context is
There's already the virtual XWiki.XWikiGuest .
#if($context.user == "XWiki.XWikiGuest")
will display content only for non-authenticated users for instance.
> I see in reading the xwiki.cfg and tutuorials on how to run your own
> authentication code that there is a way to override the login page
> within the config. Is there also a way to "override" the call to the
> login? I know in (cough,cough) confluence they have a seraph mechanism
> that you can override what the login action is... looking for something
> similar here..
> I've thought of perhaps using an apache rewrite rule on the
> login/XWikiLogin page to trigger my auth
> Thanks guys..
> devs mailing list
> devs at xwiki.org
More information about the devs