Topic on Extension talk:GoogleLogin

The supplied credentials are not associated with any user on this wiki. (1.33)

3
125.236.194.84 (talkcontribs)

Hi Florian,

These are my wiki specs below:

Product Version
MediaWiki] 1.33.0
7.2.19-0ubuntu0.18.04.2 (apache2handler)
5.7.27-0ubuntu0.18.04.1

And I'm trying to enable Authoritative Mode for Google Login as described here. This is what I currently have in my LocalSettings.php:

$wgGLSecret = '-';
$wgGLAppId = '-';
$wgGLAllowedDomains = array( 'url.com' );
$wgGLAllowedDomainsStrict = 'true';
$wgWhitelistRead = array( 'Special:GoogleLoginReturn' );
$wgGLAuthoritativeMode = 'true';
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgUserrightsInterwikiDelimiter = "%";
$wgInvalidUsernameCharacters = "%";$wgShowExceptionDetails = 'true';

But when I try and log in with Google, it simply states the supplied creds are not associated with any user - which I expect but am I wrong in thinking that because I have authoritative mode enabled - it should then automatically create the new account since its not linked with a local mediawiki account?


Keen to hear your thoughts.

Florianschmidtwelzow (talkcontribs)

Hi,

are you using the REL1_33 release branch of Google Login? If so, this version does not support the authoritative mode. You would need to download a new copy of GoogleLogin using the latest development version "master" in order to get this feature :-)

Best, Florian

CThompson520 (talkcontribs)

This was the key for me - on the patch page there were the following notes:

* The E-Mail address returned from Google needs to be the E-Mail in the MediaWiki account to match

* The E-Mail address returned from Google must not be assigned to multiple MediaWiki accounts

* The MediaWiki account e-mail address needs to be verified

The 3rd one was what was getting me - once I authenticated emails, it worked. You can do this manually directly against the database like this:

UPDATE mw_user SET user_email_authenticated = '20210907204043' WHERE user_email_authenticated IS NULL;

The "mw_" before user is just the value set in $wgDBprefix. That varchar value that is being updated is just the date in "YmdHis" format, so you could set it to the time you were running the query. Backup your database first, and potentially just try a single user account to start with!

Reply to "The supplied credentials are not associated with any user on this wiki. (1.33)"