Add $wgAuthenticationTokenVersion
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 1 Feb 2016 20:07:09 +0000 (15:07 -0500)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 2 Feb 2016 19:21:52 +0000 (19:21 +0000)
commitfbec46e3089ead3c39994d55ea6bfe0863eddfd6
treed1efed5aec394cdc273997ca81ac9286605997e7
parentf8e44b8b113f9f9d1d09412f082f36000cfde379
Add $wgAuthenticationTokenVersion

This allows for quickly invalidating everyone's session all at once by
changing a single value.

As a side effect, setting this also stops the user_token field from
the database from being served to the user as a cookie.

This mitigates but doesn't completely solve T49490, as it allows for
invalidating all existing sessions and token-cookies but does not help
if the user_token field in the database was leaked.

Bug: T49490
Change-Id: I9d316a6bbb36278d138f39a89125ebb8cc71b28f
includes/DefaultSettings.php
includes/user/User.php