Jump to content

Topic on Extension talk:Auth remoteuser/Archive 2

Auto Login vi RemoteuserUserName not working

1
107.185.133.87 (talkcontribs)

I'm using Google to authenticate users and setting

$wgAuthRemoteuserUserName

appropriately. However, the user is not automatically logged in and an account is not created.

I tracked it down to an issue in includes/session/SessionManager.php where it loads a blank session instead of one based on the request.

In the getSessionById() function, I replace the call

$session = $this->getEmptySessionInternal( $request, $id );

with

$session = self::singleton()->getSessionForRequest( $request );

and everything works beautifully.

Can someone with better knowledge of MediaWiki than me take a look and see if this should be filed as a bug against MediaWiki? or is it an improper solve, and I should be looking to adjust Auth_remoteuser in some way?

I'm using Mediawiki 1.38.4 and Auth_remoteuser REL1_38


Thanks in advance

Reply to "Auto Login vi RemoteuserUserName not working"