wiki.techinc.nl/tests/phpunit/includes/session
Matthew Flaschen 04993acecb Extended login: Don't use a $wg config variable, add UserName
CentralAuth needs 'User' as well for this to work.  However, this
shows the exact cookie names are an implementation detail that should
not be exposed as a 'wg'.

Instead, use a function in the CookieSessionProvider.  That way,
CentralAuth can override it properly without requiring users to change
$wg's.

I also added UserName. provideSessionInfo will fail to return
session info if UserID and UserName are both set and don't match.

Also, the UserID<->UserName mapping is public, so there is no
additional privacy issue.  Thus, it seems we should expire them
the same time.

Bug: T68699
Change-Id: Ia3259846433980408f79d44f665e17e15670e8ee
2016-06-23 19:35:17 +02:00
..
BotPasswordSessionProviderTest.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
CookieSessionProviderTest.php Extended login: Don't use a $wg config variable, add UserName 2016-06-23 19:35:17 +02:00
ImmutableSessionProviderWithCookieTest.php Add SessionProvider::getRememberUserDuration(), fix some durations 2016-05-14 19:50:06 +00:00
MetadataMergeExceptionTest.php Improve SessionManager unit test coverage, and fix two namespacing bugs 2016-02-26 20:14:27 +00:00
PHPSessionHandlerTest.php Remove a test case from PHPSessionHandlerTest::testSessionHandling() 2016-06-01 04:46:41 +00:00
SessionBackendTest.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
SessionIdTest.php Revert "Remove SessionManager, temporarily" 2016-02-03 21:44:59 +00:00
SessionInfoTest.php Add SessionInfo force-use flag 2016-05-10 15:59:32 -04:00
SessionManagerTest.php Add AuthManager 2016-05-16 15:11:02 +00:00
SessionProviderTest.php Add SessionProvider::getRememberUserDuration(), fix some durations 2016-05-14 19:50:06 +00:00
SessionTest.php SessionManager: Add provision for encrypting session data 2016-04-29 15:34:55 +00:00
TestBagOStuff.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TestUtils.php Use ::class in place of string constants 2016-03-28 14:53:45 -04:00
TokenTest.php Use ::class in place of string constants 2016-03-28 14:53:45 -04:00
UserInfoTest.php Revert "Remove SessionManager, temporarily" 2016-02-03 21:44:59 +00:00