I'm trying to integrate this extension into FreedomBox, which is a a piece of software that offers a one-click installaation for MediaWiki. For starter, the following apache config works well:
TKTAuthToken "wiki" "admin"
However, this way the whole wiki becomes private, and you have to log in to read the pages. My goal is to authenticate only when the user visits the login page. If I set the Location to be
<Location /mediawiki/Special:UserLogin>, it does authenticate, but when I jump on the main page, the user logs out immediately.
I tried setting
$wgArticlePath and $wgCookieDomain
with no success, though I'm not entirely sure about the correctness of these two.
Is it possible to auhtenticate only on the login page, and have the user not log out when navigating elsewhere?